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

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: non-static based check Created 7 years 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
125 #if defined(ENABLE_DCHECK)
Bernhard Bauer 2013/11/22 09:55:03 Does this work? It seems ENABLE_DCHECK is #undef'd
gab 2013/11/22 21:05:13 Ah, good point... I think #if !defined(NDEBUG) ||
Bernhard Bauer 2013/11/22 21:53:55 I think what we should do is add a #define for thi
124 bool checked_tracked_prefs_; 126 bool checked_tracked_prefs_;
127 #endif
125 128
126 PrefChangeRegistrar pref_registrar_; 129 PrefChangeRegistrar pref_registrar_;
127 scoped_ptr<SyncedPrefChangeRegistrar> synced_pref_change_registrar_; 130 scoped_ptr<SyncedPrefChangeRegistrar> synced_pref_change_registrar_;
128 131
129 base::WeakPtrFactory<PrefMetricsService> weak_factory_; 132 base::WeakPtrFactory<PrefMetricsService> weak_factory_;
130 133
131 DISALLOW_COPY_AND_ASSIGN(PrefMetricsService); 134 DISALLOW_COPY_AND_ASSIGN(PrefMetricsService);
132 }; 135 };
133 136
134 #endif // CHROME_BROWSER_PREFS_PREF_METRICS_SERVICE_H_ 137 #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