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_services_manager_client.h

Issue 2793393002: CrOS settings/metrics: Correctly store Subscriptions (Closed)
Patch Set: . Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SERVICES_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "components/metrics_services_manager/metrics_services_manager_client.h" 14 #include "components/metrics_services_manager/metrics_services_manager_client.h"
15 15
16 #if defined(OS_CHROMEOS)
17 #include "chrome/browser/chromeos/settings/cros_settings.h"
18 #endif
19
16 class PrefService; 20 class PrefService;
17 21
18 namespace metrics { 22 namespace metrics {
19 class EnabledStateProvider; 23 class EnabledStateProvider;
20 class MetricsStateManager; 24 class MetricsStateManager;
21 } 25 }
22 26
23 namespace version_info { 27 namespace version_info {
24 enum class Channel; 28 enum class Channel;
25 } 29 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // EnabledStateProvider to communicate if the client has consented to metrics 89 // EnabledStateProvider to communicate if the client has consented to metrics
86 // reporting, and if it's enabled. 90 // reporting, and if it's enabled.
87 std::unique_ptr<metrics::EnabledStateProvider> enabled_state_provider_; 91 std::unique_ptr<metrics::EnabledStateProvider> enabled_state_provider_;
88 92
89 // Ensures that all functions are called from the same thread. 93 // Ensures that all functions are called from the same thread.
90 base::ThreadChecker thread_checker_; 94 base::ThreadChecker thread_checker_;
91 95
92 // Weak pointer to the local state prefs store. 96 // Weak pointer to the local state prefs store.
93 PrefService* local_state_; 97 PrefService* local_state_;
94 98
99 #if defined(OS_CHROMEOS)
100 std::unique_ptr<chromeos::CrosSettings::ObserverSubscription>
101 cros_settings_observer_;
102 #endif
103
95 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServicesManagerClient); 104 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServicesManagerClient);
96 }; 105 };
97 106
98 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_ 107 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICES_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/cros_settings.h ('k') | chrome/browser/metrics/chrome_metrics_services_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698