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

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: +TODO 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void InitializePrefObservers(); 118 void InitializePrefObservers();
119 119
120 Profile* profile_; 120 Profile* profile_;
121 PrefService* prefs_; 121 PrefService* prefs_;
122 PrefService* local_state_; 122 PrefService* local_state_;
123 std::string profile_name_; 123 std::string profile_name_;
124 std::string pref_hash_seed_; 124 std::string pref_hash_seed_;
125 std::string device_id_; 125 std::string device_id_;
126 const char** tracked_pref_paths_; 126 const char** tracked_pref_paths_;
127 const int tracked_pref_path_count_; 127 const int tracked_pref_path_count_;
128
129 // TODO(gab): preprocessor define this member out on builds that don't use
130 // DCHECKs (http://crbug.com/322713).
128 bool checked_tracked_prefs_; 131 bool checked_tracked_prefs_;
129 132
130 PrefChangeRegistrar pref_registrar_; 133 PrefChangeRegistrar pref_registrar_;
131 scoped_ptr<SyncedPrefChangeRegistrar> synced_pref_change_registrar_; 134 scoped_ptr<SyncedPrefChangeRegistrar> synced_pref_change_registrar_;
132 135
133 base::WeakPtrFactory<PrefMetricsService> weak_factory_; 136 base::WeakPtrFactory<PrefMetricsService> weak_factory_;
134 137
135 DISALLOW_COPY_AND_ASSIGN(PrefMetricsService); 138 DISALLOW_COPY_AND_ASSIGN(PrefMetricsService);
136 }; 139 };
137 140
138 #endif // CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_ 141 #endif // CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/music_manager_private/device_id.cc ('k') | chrome/browser/prefs/pref_metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698