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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_accessor.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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"
8 #include "build/build_config.h" 7 #include "build/build_config.h"
9 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
10 #include "chrome/common/features.h" 9 #include "chrome/common/features.h"
11 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "components/prefs/pref_service.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 13
14 #if defined(OS_CHROMEOS) 14 #if defined(OS_CHROMEOS)
15 #include "chrome/browser/chromeos/settings/cros_settings.h" 15 #include "chrome/browser/chromeos/settings/cros_settings.h"
16 #endif 16 #endif
17 17
18 // static 18 // static
19 bool ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled() { 19 bool ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled() {
20 // TODO(blundell): Fix the unittests that don't set up the UI thread and 20 // TODO(blundell): Fix the unittests that don't set up the UI thread and
21 // change this to just be DCHECK_CURRENTLY_ON(). 21 // change this to just be DCHECK_CURRENTLY_ON().
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 57
58 // static 58 // static
59 bool ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash( 59 bool ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash(
60 uint32_t trial_name_hash, 60 uint32_t trial_name_hash,
61 const std::string& group_name) { 61 const std::string& group_name) {
62 return metrics::MetricsServiceAccessor:: 62 return metrics::MetricsServiceAccessor::
63 RegisterSyntheticFieldTrialWithNameHash( 63 RegisterSyntheticFieldTrialWithNameHash(
64 g_browser_process->metrics_service(), trial_name_hash, group_name); 64 g_browser_process->metrics_service(), trial_name_hash, group_name);
65 } 65 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/android_metrics_provider.cc ('k') | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698