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

Side by Side 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: indent fixed Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 5 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "components/metrics/metrics_service.h" 10 #include "components/metrics/metrics_service.h"
(...skipping 28 matching lines...) Expand all
39 // Android has its own settings for metrics / crash uploading. 39 // Android has its own settings for metrics / crash uploading.
40 const PrefService* prefs = g_browser_process->local_state(); 40 const PrefService* prefs = g_browser_process->local_state();
41 return prefs->GetBoolean(prefs::kCrashReportingEnabled); 41 return prefs->GetBoolean(prefs::kCrashReportingEnabled);
42 #else 42 #else
43 return ChromeMetricsServiceAccessor::IsMetricsReportingEnabled(); 43 return ChromeMetricsServiceAccessor::IsMetricsReportingEnabled();
44 #endif 44 #endif
45 #else 45 #else
46 return false; 46 return false;
47 #endif 47 #endif
48 } 48 }
49
50 // static
51 bool ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(
52 const std::string& trial, const std::string& group) {
53 return MetricsServiceAccessor::RegisterSyntheticFieldTrial(
54 g_browser_process->metrics_service(),
55 trial,
56 group);
57 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_accessor.h ('k') | chrome/browser/metrics/metrics_service_accessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698