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

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: Rebase before submit 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 friend class ::CrashesDOMHandler; 59 friend class ::CrashesDOMHandler;
60 friend class DataReductionProxyChromeSettings; 60 friend class DataReductionProxyChromeSettings;
61 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction; 61 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction;
62 friend class extensions::FileManagerPrivateIsUMAEnabledFunction; 62 friend class extensions::FileManagerPrivateIsUMAEnabledFunction;
63 friend class ::FlashDOMHandler; 63 friend class ::FlashDOMHandler;
64 friend class system_logs::ChromeInternalLogSource; 64 friend class system_logs::ChromeInternalLogSource;
65 friend class UmaSessionStats; 65 friend class UmaSessionStats;
66 friend class options::BrowserOptionsHandler; 66 friend class options::BrowserOptionsHandler;
67 friend void InitiateMetricsReportingChange( 67 friend void InitiateMetricsReportingChange(
68 bool, const OnMetricsReportingCallbackType&); 68 bool, const OnMetricsReportingCallbackType&);
69 friend class MetricsServicesManager;
69 70
70 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, 71 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest,
71 MetricsReportingEnabled); 72 MetricsReportingEnabled);
72 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, 73 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest,
73 CrashReportingEnabled); 74 CrashReportingEnabled);
74 75
75 // Returns true if prefs::kMetricsReportingEnabled is set. 76 // Returns true if prefs::kMetricsReportingEnabled is set.
76 // TODO(asvitkine): Consolidate the method in MetricsStateManager. 77 // TODO(asvitkine): Consolidate the method in MetricsStateManager.
77 // TODO(asvitkine): This function does not report the correct value on 78 // TODO(asvitkine): This function does not report the correct value on
78 // Android and ChromeOS, see http://crbug.com/362192. 79 // Android and ChromeOS, see http://crbug.com/362192.
(...skipping 17 matching lines...) Expand all
96 // Same as RegisterSyntheticFieldTrial above, but takes a hash for the trial 97 // Same as RegisterSyntheticFieldTrial above, but takes a hash for the trial
97 // name, rather than computing it from the string. 98 // name, rather than computing it from the string.
98 static bool RegisterSyntheticFieldTrialWithNameHash( 99 static bool RegisterSyntheticFieldTrialWithNameHash(
99 uint32_t trial_name_hash, 100 uint32_t trial_name_hash,
100 const std::string& group_name); 101 const std::string& group_name);
101 102
102 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); 103 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor);
103 }; 104 };
104 105
105 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 106 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/metrics/chrome_metrics_service_accessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698