tools/gn: make use of base's StartsWith() function

Since Brett introduced this funtion to base, we can make use of it and
remove our copy from gn. We are also making use of it in other five
files already.

BUG=None
TEST=gn gen + gn_unittests
R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/1481403006

Cr-Original-Commit-Position: refs/heads/master@{#362446}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 934d88d64c50f9f4d684194320cf15cd9b29059e
1 file changed
tree: 8b52d6a2f636d8dfde763860e6823a9f14b840eb
  1. tools/