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

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

Issue 916133003: Fix ChromeMetricsServiceAccessor::IsMetricsReportingEnabled on CrOs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make MetricsServicesManager::IsMetricsReportingEnabled private Created 5 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 #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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 friend class ChromeRenderMessageFilter; 57 friend class ChromeRenderMessageFilter;
58 friend class ::CrashesDOMHandler; 58 friend class ::CrashesDOMHandler;
59 friend class DataReductionProxyChromeSettings; 59 friend class DataReductionProxyChromeSettings;
60 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction; 60 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction;
61 friend class ::FlashDOMHandler; 61 friend class ::FlashDOMHandler;
62 friend class system_logs::ChromeInternalLogSource; 62 friend class system_logs::ChromeInternalLogSource;
63 friend class UmaSessionStats; 63 friend class UmaSessionStats;
64 friend class options::BrowserOptionsHandler; 64 friend class options::BrowserOptionsHandler;
65 friend void InitiateMetricsReportingChange( 65 friend void InitiateMetricsReportingChange(
66 bool, const OnMetricsReportingCallbackType&); 66 bool, const OnMetricsReportingCallbackType&);
67 friend class MetricsServicesManager;
67 68
68 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, 69 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest,
69 MetricsReportingEnabled); 70 MetricsReportingEnabled);
70 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, 71 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest,
71 CrashReportingEnabled); 72 CrashReportingEnabled);
72 73
73 // Returns true if prefs::kMetricsReportingEnabled is set. 74 // Returns true if prefs::kMetricsReportingEnabled is set.
74 // TODO(asvitkine): Consolidate the method in MetricsStateManager. 75 // TODO(asvitkine): Consolidate the method in MetricsStateManager.
75 // TODO(asvitkine): This function does not report the correct value on 76 // TODO(asvitkine): This function does not report the correct value on
76 // Android and ChromeOS, see http://crbug.com/362192. 77 // Android and ChromeOS, see http://crbug.com/362192.
(...skipping 17 matching lines...) Expand all
94 // Same as RegisterSyntheticFieldTrial above, but takes a hash for the trial 95 // Same as RegisterSyntheticFieldTrial above, but takes a hash for the trial
95 // name, rather than computing it from the string. 96 // name, rather than computing it from the string.
96 static bool RegisterSyntheticFieldTrialWithNameHash( 97 static bool RegisterSyntheticFieldTrialWithNameHash(
97 uint32_t trial_name_hash, 98 uint32_t trial_name_hash,
98 const std::string& group_name); 99 const std::string& group_name);
99 100
100 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); 101 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor);
101 }; 102 };
102 103
103 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 104 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698