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

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

Issue 81683002: Prevent GetDeviceId from invoking its callback multiple times in failure cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 <string> 9 #include <string>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void InitializePrefObservers(); 114 void InitializePrefObservers();
115 115
116 Profile* profile_; 116 Profile* profile_;
117 PrefService* prefs_; 117 PrefService* prefs_;
118 PrefService* local_state_; 118 PrefService* local_state_;
119 std::string profile_name_; 119 std::string profile_name_;
120 std::string pref_hash_seed_; 120 std::string pref_hash_seed_;
121 std::string device_id_; 121 std::string device_id_;
122 const char** tracked_pref_paths_; 122 const char** tracked_pref_paths_;
123 const int tracked_pref_path_count_; 123 const int tracked_pref_path_count_;
124 bool checked_tracked_prefs_;
125 124
126 PrefChangeRegistrar pref_registrar_; 125 PrefChangeRegistrar pref_registrar_;
127 scoped_ptr<SyncedPrefChangeRegistrar> synced_pref_change_registrar_; 126 scoped_ptr<SyncedPrefChangeRegistrar> synced_pref_change_registrar_;
128 127
129 base::WeakPtrFactory<PrefMetricsService> weak_factory_; 128 base::WeakPtrFactory<PrefMetricsService> weak_factory_;
130 129
131 DISALLOW_COPY_AND_ASSIGN(PrefMetricsService); 130 DISALLOW_COPY_AND_ASSIGN(PrefMetricsService);
132 }; 131 };
133 132
134 #endif // CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_ 133 #endif // CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698