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

Unified Diff: chrome/browser/metrics/chrome_metrics_service_accessor.cc

Issue 421653005: Adding synthetic field trial for DataReductionProxyEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newPltWithCL
Patch Set: Addressed comments Created 6 years, 5 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
Index: chrome/browser/metrics/chrome_metrics_service_accessor.cc
diff --git a/chrome/browser/metrics/chrome_metrics_service_accessor.cc b/chrome/browser/metrics/chrome_metrics_service_accessor.cc
index 6c142fc463278d90a643c84e5a9e44518e4c68b6..8f9d4be38f14f6b4827eebb7ce41cf877bbf0c5e 100644
--- a/chrome/browser/metrics/chrome_metrics_service_accessor.cc
+++ b/chrome/browser/metrics/chrome_metrics_service_accessor.cc
@@ -6,6 +6,7 @@
#include "base/prefs/pref_service.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/metrics/metrics_service_accessor.h"
Alexei Svitkine (slow) 2014/07/30 21:33:31 Nit: This include is unnecessary.
megjablon 2014/07/30 21:42:50 Done.
#include "chrome/common/pref_names.h"
#include "components/metrics/metrics_service.h"
@@ -46,3 +47,10 @@ bool ChromeMetricsServiceAccessor::IsCrashReportingEnabled() {
return false;
#endif
}
+
+// static
+bool ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(
+ const std::string& trial, const std::string& group) {
Alexei Svitkine (slow) 2014/07/30 21:33:31 Nit: 1 param per line if first param is on a new l
megjablon 2014/07/30 21:42:50 Done.
+ return MetricsServiceAccessor::RegisterSyntheticFieldTrial(
+ g_browser_process->metrics_service(), trial, group);
+}

Powered by Google App Engine
This is Rietveld 408576698