Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3803)

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 1765293002: Add support for Blimp engine metrics reporting in development. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rollback. Committed in wrong branch. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/args/blimp_engine.gn ('k') | components/metrics/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 12512d561f1b5fc69bb1e1c3f6d650502942e399..2d211b75344ead77f9adeb529f42ccdc173c768e 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -853,8 +853,16 @@ void BrowserProcessImpl::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterStringPref(prefs::kHardwareKeyboardLayout,
std::string());
#endif // defined(OS_CHROMEOS)
+
+#if defined(ENABLE_REPORTING_HEADLESS)
maniscalco 2016/03/08 16:38:22 Was leaving the word blimp out of the #define an e
Jess 2016/03/08 18:29:09 Good point. I think I was trying to use to variab
+ // Enables reporting for the (headless) blimp engine. Defined in
+ // components/metrics/BUILD.gn
+ registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled, true);
+#else
registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled,
GoogleUpdateSettings::GetCollectStatsConsent());
+#endif // defined(ENABLE_REPORTING_HEADLESS)
+
#if BUILDFLAG(ANDROID_JAVA_UI)
registry->RegisterBooleanPref(
prefs::kCrashReportingEnabled, false);
« no previous file with comments | « build/args/blimp_engine.gn ('k') | components/metrics/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698