Index: components/metrics/BUILD.gn |
diff --git a/components/metrics/BUILD.gn b/components/metrics/BUILD.gn |
index 6130dd5ea3ef5c2fe431768a5f86ac84c4536256..c49e4a350cf4ef70c12347bc2cb4ac7ece1591f9 100644 |
--- a/components/metrics/BUILD.gn |
+++ b/components/metrics/BUILD.gn |
@@ -2,6 +2,11 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+declare_args() { |
+ # Overrides os name in uma metrics log to "Blimp". |
+ metrics_use_blimp = false |
+} |
+ |
# GYP version: components/metrics.gypi:metrics |
source_set("metrics") { |
sources = [ |
@@ -347,5 +352,14 @@ source_set("unit_tests") { |
if (is_chromeos) { |
deps += [ ":leak_detector_unit_tests" ] |
} |
+ |
+ # These are only used by the blimp team, which has entirely migrated to gn, |
+ # so this logic is not replicated in the gyp file. |
+ if (metrics_use_blimp) { |
+ defines = [ |
+ "OVERRIDE_OS_NAME_TO_BLIMP", |
+ "ENABLE_REPORTING_BLIMP", |
+ ] |
+ } |
} |
# TODO(GYP): metrics_chromeos |