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

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

Issue 1956893004: Don't send extension info for non-webstore extensions during update check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittests 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
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
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/metrics/metrics_reporting_state.h" 13 #include "chrome/browser/metrics/metrics_reporting_state.h"
14 #include "components/metrics/metrics_service_accessor.h" 14 #include "components/metrics/metrics_service_accessor.h"
15 15
16 class BrowserProcessImpl; 16 class BrowserProcessImpl;
17 class ChromeExtensionDownloaderFactory;
18 class Profile; 17 class Profile;
19 18
20 namespace { 19 namespace {
21 class CrashesDOMHandler; 20 class CrashesDOMHandler;
22 class FlashDOMHandler; 21 class FlashDOMHandler;
23 } 22 }
24 23
25 namespace chrome_browser { 24 namespace chrome_browser {
26 void SetupPreReadFieldTrial(); 25 void SetupPreReadFieldTrial();
27 } 26 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 69
71 // This class limits and documents access to metrics service helper methods. 70 // This class limits and documents access to metrics service helper methods.
72 // Since these methods are private, each user has to be explicitly declared 71 // Since these methods are private, each user has to be explicitly declared
73 // as a 'friend' below. 72 // as a 'friend' below.
74 class ChromeMetricsServiceAccessor : public metrics::MetricsServiceAccessor { 73 class ChromeMetricsServiceAccessor : public metrics::MetricsServiceAccessor {
75 private: 74 private:
76 friend class ::CrashesDOMHandler; 75 friend class ::CrashesDOMHandler;
77 friend class ::FlashDOMHandler; 76 friend class ::FlashDOMHandler;
78 friend class BrowserProcessImpl; 77 friend class BrowserProcessImpl;
79 friend void chrome_browser::SetupPreReadFieldTrial(); 78 friend void chrome_browser::SetupPreReadFieldTrial();
80 friend class ChromeExtensionDownloaderFactory;
81 friend class ChromeMetricsServicesManagerClient; 79 friend class ChromeMetricsServicesManagerClient;
82 friend class ChromeRenderMessageFilter; 80 friend class ChromeRenderMessageFilter;
83 friend class DataReductionProxyChromeSettings; 81 friend class DataReductionProxyChromeSettings;
84 friend class domain_reliability::DomainReliabilityServiceFactory; 82 friend class domain_reliability::DomainReliabilityServiceFactory;
85 friend class extensions::ChromeExtensionWebContentsObserver; 83 friend class extensions::ChromeExtensionWebContentsObserver;
86 friend class extensions::FileManagerPrivateIsUMAEnabledFunction; 84 friend class extensions::FileManagerPrivateIsUMAEnabledFunction;
87 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction; 85 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction;
88 friend void InitiateMetricsReportingChange( 86 friend void InitiateMetricsReportingChange(
89 bool, const OnMetricsReportingCallbackType&); 87 bool, const OnMetricsReportingCallbackType&);
90 friend class options::BrowserOptionsHandler; 88 friend class options::BrowserOptionsHandler;
(...skipping 29 matching lines...) Expand all
120 // with g_browser_process->metrics_service(). See that function's declaration 118 // with g_browser_process->metrics_service(). See that function's declaration
121 // for details. 119 // for details.
122 static bool RegisterSyntheticFieldTrialWithNameHash( 120 static bool RegisterSyntheticFieldTrialWithNameHash(
123 uint32_t trial_name_hash, 121 uint32_t trial_name_hash,
124 const std::string& group_name); 122 const std::string& group_name);
125 123
126 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); 124 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor);
127 }; 125 };
128 126
129 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 127 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_updater_unittest.cc ('k') | extensions/browser/updater/extension_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698