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

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

Issue 1945803002: SyzyASAN: Export experiment state to finch synthetic field trials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix export name to match the SyzyASAN-side name change. Created 4 years, 7 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
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 friend class safe_browsing::IncidentReportingService; 92 friend class safe_browsing::IncidentReportingService;
93 friend class speech::ChromeSpeechRecognitionManagerDelegate; 93 friend class speech::ChromeSpeechRecognitionManagerDelegate;
94 friend class StackSamplingConfiguration; 94 friend class StackSamplingConfiguration;
95 friend class system_logs::ChromeInternalLogSource; 95 friend class system_logs::ChromeInternalLogSource;
96 friend class UmaSessionStats; 96 friend class UmaSessionStats;
97 friend class safe_browsing::SRTFetcher; 97 friend class safe_browsing::SRTFetcher;
98 friend class safe_browsing::DownloadSBClient; 98 friend class safe_browsing::DownloadSBClient;
99 friend class safe_browsing::SafeBrowsingService; 99 friend class safe_browsing::SafeBrowsingService;
100 friend class safe_browsing::SafeBrowsingUIManager; 100 friend class safe_browsing::SafeBrowsingUIManager;
101 friend class settings::SystemHandler; 101 friend class settings::SystemHandler;
102 friend void SyzyASANRegisterExperiment(const char*, const char*);
102 103
103 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, 104 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest,
104 MetricsReportingEnabled); 105 MetricsReportingEnabled);
105 106
106 // Returns true if metrics reporting is enabled. 107 // Returns true if metrics reporting is enabled.
107 // TODO(gayane): Consolidate metric prefs on all platforms. 108 // TODO(gayane): Consolidate metric prefs on all platforms.
108 // http://crbug.com/362192, http://crbug.com/532084 109 // http://crbug.com/362192, http://crbug.com/532084
109 static bool IsMetricsAndCrashReportingEnabled(); 110 static bool IsMetricsAndCrashReportingEnabled();
110 111
111 // Calls metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrial() with 112 // Calls metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrial() with
112 // g_browser_process->metrics_service(). See that function's declaration for 113 // g_browser_process->metrics_service(). See that function's declaration for
113 // details. 114 // details.
114 static bool RegisterSyntheticFieldTrial(const std::string& trial_name, 115 static bool RegisterSyntheticFieldTrial(const std::string& trial_name,
115 const std::string& group_name); 116 const std::string& group_name);
116 117
117 // Calls 118 // Calls
118 // metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash() 119 // metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash()
119 // with g_browser_process->metrics_service(). See that function's declaration 120 // with g_browser_process->metrics_service(). See that function's declaration
120 // for details. 121 // for details.
121 static bool RegisterSyntheticFieldTrialWithNameHash( 122 static bool RegisterSyntheticFieldTrialWithNameHash(
122 uint32_t trial_name_hash, 123 uint32_t trial_name_hash,
123 const std::string& group_name); 124 const std::string& group_name);
124 125
125 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); 126 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor);
126 }; 127 };
127 128
128 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 129 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698