Fix arm detection code in gn.

The current code calls substr(3), which gets the substring starting from
index 3 up to the end of the string. However, on Ubuntu armhf (and
likely other systems), arm is the first three characters, and the
original intention was likely to get the substring of length 3 starting
from the beginning of the string.

R=brettw@chromium.org
BUG=607385

Review-Url: https://codereview.chromium.org/1920033007
Cr-Original-Commit-Position: refs/heads/master@{#390507}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b68180a770804afde260b0f1c9747f10139b20b3
diff --git a/tools/gn/args.cc b/tools/gn/args.cc
index 496ba18..d83c678 100644
--- a/tools/gn/args.cc
+++ b/tools/gn/args.cc
@@ -242,7 +242,7 @@
     arch = kX86;
   else if (os_arch == "x86_64")
     arch = kX64;
-  else if (os_arch.substr(3) == "arm")
+  else if (os_arch.substr(0, 3) == "arm")
     arch = kArm;
   else if (os_arch == "mips")
     arch = kMips;