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

Side by Side Diff: chrome/browser/prefs/pref_metrics_service.h

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PREFS_PREF_METRICS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_
6 #define CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_ 6 #define CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 16 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
17 #include "components/keyed_service/core/keyed_service.h" 17 #include "components/keyed_service/core/keyed_service.h"
18 #include "components/syncable_prefs/synced_pref_change_registrar.h" 18 #include "components/sync_preferences/synced_pref_change_registrar.h"
19 19
20 class PrefRegistrySimple; 20 class PrefRegistrySimple;
21 21
22 // PrefMetricsService is responsible for recording prefs-related UMA stats. 22 // PrefMetricsService is responsible for recording prefs-related UMA stats.
23 class PrefMetricsService : public KeyedService { 23 class PrefMetricsService : public KeyedService {
24 public: 24 public:
25 explicit PrefMetricsService(Profile* profile); 25 explicit PrefMetricsService(Profile* profile);
26 ~PrefMetricsService() override; 26 ~PrefMetricsService() override;
27 27
28 // Records metrics about the state of the homepage on launch. 28 // Records metrics about the state of the homepage on launch.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 // Callback for an integer pref change histogram. 83 // Callback for an integer pref change histogram.
84 void LogIntegerPrefChange(int boundary_value, 84 void LogIntegerPrefChange(int boundary_value,
85 const std::string& histogram_name, 85 const std::string& histogram_name,
86 const base::Value* value); 86 const base::Value* value);
87 87
88 Profile* profile_; 88 Profile* profile_;
89 PrefService* prefs_; 89 PrefService* prefs_;
90 PrefService* local_state_; 90 PrefService* local_state_;
91 91
92 std::unique_ptr<syncable_prefs::SyncedPrefChangeRegistrar> 92 std::unique_ptr<sync_preferences::SyncedPrefChangeRegistrar>
93 synced_pref_change_registrar_; 93 synced_pref_change_registrar_;
94 94
95 base::WeakPtrFactory<PrefMetricsService> weak_factory_; 95 base::WeakPtrFactory<PrefMetricsService> weak_factory_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(PrefMetricsService); 97 DISALLOW_COPY_AND_ASSIGN(PrefMetricsService);
98 }; 98 };
99 99
100 #endif // CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_ 100 #endif // CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_functional_browsertest.cc ('k') | chrome/browser/prefs/pref_metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698