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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prefs/pref_metrics_service.h
diff --git a/chrome/browser/prefs/pref_metrics_service.h b/chrome/browser/prefs/pref_metrics_service.h
index 3a4bc4fcbc358d65a2823a3a3095113b6cc0795c..b50b1c018bc422a4353e352c34303ebde7ad154b 100644
--- a/chrome/browser/prefs/pref_metrics_service.h
+++ b/chrome/browser/prefs/pref_metrics_service.h
@@ -121,7 +121,10 @@ class PrefMetricsService : public BrowserContextKeyedService {
std::string device_id_;
const char** tracked_pref_paths_;
const int tracked_pref_path_count_;
+
+#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
bool checked_tracked_prefs_;
+#endif
PrefChangeRegistrar pref_registrar_;
scoped_ptr<SyncedPrefChangeRegistrar> synced_pref_change_registrar_;
« 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