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

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

Issue 1814703004: MD Settings: implement "RESTART" button for hardware acceleration to take effect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: friend 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 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 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 friend bool prerender::IsOmniboxEnabled(Profile* profile); 87 friend bool prerender::IsOmniboxEnabled(Profile* profile);
88 friend class safe_browsing::IncidentReportingService; 88 friend class safe_browsing::IncidentReportingService;
89 friend class speech::ChromeSpeechRecognitionManagerDelegate; 89 friend class speech::ChromeSpeechRecognitionManagerDelegate;
90 friend class StackSamplingConfiguration; 90 friend class StackSamplingConfiguration;
91 friend class system_logs::ChromeInternalLogSource; 91 friend class system_logs::ChromeInternalLogSource;
92 friend class UmaSessionStats; 92 friend class UmaSessionStats;
93 friend class safe_browsing::SRTFetcher; 93 friend class safe_browsing::SRTFetcher;
94 friend class safe_browsing::DownloadSBClient; 94 friend class safe_browsing::DownloadSBClient;
95 friend class safe_browsing::SafeBrowsingService; 95 friend class safe_browsing::SafeBrowsingService;
96 friend class safe_browsing::SafeBrowsingUIManager; 96 friend class safe_browsing::SafeBrowsingUIManager;
97 friend class settings::SystemHandler;
97 98
98 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, 99 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest,
99 MetricsReportingEnabled); 100 MetricsReportingEnabled);
100 101
101 // Returns true if metrics reporting is enabled. 102 // Returns true if metrics reporting is enabled.
102 // TODO(gayane): Consolidate metric prefs on all platforms. 103 // TODO(gayane): Consolidate metric prefs on all platforms.
103 // http://crbug.com/362192, http://crbug.com/532084 104 // http://crbug.com/362192, http://crbug.com/532084
104 static bool IsMetricsAndCrashReportingEnabled(); 105 static bool IsMetricsAndCrashReportingEnabled();
105 106
106 // Calls metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrial() with 107 // Calls metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrial() with
107 // g_browser_process->metrics_service(). See that function's declaration for 108 // g_browser_process->metrics_service(). See that function's declaration for
108 // details. 109 // details.
109 static bool RegisterSyntheticFieldTrial(const std::string& trial_name, 110 static bool RegisterSyntheticFieldTrial(const std::string& trial_name,
110 const std::string& group_name); 111 const std::string& group_name);
111 112
112 // Calls 113 // Calls
113 // metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash() 114 // metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash()
114 // with g_browser_process->metrics_service(). See that function's declaration 115 // with g_browser_process->metrics_service(). See that function's declaration
115 // for details. 116 // for details.
116 static bool RegisterSyntheticFieldTrialWithNameHash( 117 static bool RegisterSyntheticFieldTrialWithNameHash(
117 uint32_t trial_name_hash, 118 uint32_t trial_name_hash,
118 const std::string& group_name); 119 const std::string& group_name);
119 120
120 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); 121 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor);
121 }; 122 };
122 123
123 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 124 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698