Enables to build chrome for ChromeOS on GN.

BUG=None
[email protected], [email protected]
[email protected], [email protected]
TEST=manually

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

Cr-Commit-Position: refs/heads/master@{#299641}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index eaeffc9..b0109bb7 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -350,7 +350,7 @@
     sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
                            ".", "//chrome")
     deps += [
-      #"browser_chromeos",  TODO(GYP)
+      "//chrome/browser/chromeos",
     ]
   } else {
     # Non-ChromeOS.
@@ -358,6 +358,13 @@
                            ".", "//chrome")
   }
 
+  if (is_chromeos || is_ios) {
+    sources -= [
+      "metrics/signin_status_metrics_provider.cc",
+      "metrics/signin_status_metrics_provider.h",
+    ]
+  }
+
   if (use_cups) {
     configs += [ "//printing:cups" ]
   }
@@ -404,6 +411,9 @@
   if (use_nss_certs) {
     sources += rebase_path(gypi_values.chrome_browser_nss_sources,
                            ".", "//chrome")
+    if (is_chromeos) {
+      sources -= [ "net/nss_context_linux.cc" ]
+    }
   }
   if (enable_notifications) {
     sources += rebase_path(gypi_values.chrome_browser_notifications_sources,