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

Unified Diff: components/password_manager/core/browser/log_router.h

Issue 269513003: Password manager internals page service: wiring it in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Just rebased Created 6 years, 7 months 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: components/password_manager/core/browser/log_router.h
diff --git a/components/password_manager/core/browser/log_router.h b/components/password_manager/core/browser/log_router.h
index c7ab218e4951433fd37ea73a7b3a13b2d79e2a67..5da6601278d440f5a484207455bc3bdb336448e1 100644
--- a/components/password_manager/core/browser/log_router.h
+++ b/components/password_manager/core/browser/log_router.h
@@ -60,6 +60,14 @@ class LogRouter {
// Logs accumulated since the first receiver was registered.
std::string accumulated_logs_;
+#if !defined(NDEBUG)
+ // Only notify observes from |receivers_| if this is set to true. It will be
Ilya Sherman 2014/05/13 04:32:18 nit: "observes" -> "observers"
vabr (Chromium) 2014/05/13 09:27:11 Gone -> done. :)
+ // set to false during adding a new receiver, because that might have been
+ // triggered from the receiver's constructor, and it's not a good idea to use
+ // classes which did not finish constructing themselves.
+ bool can_use_receivers_;
+#endif
Ilya Sherman 2014/05/13 04:32:18 Hmm, why is this code debug-only?
vabr (Chromium) 2014/05/13 09:27:11 I was overzealous with trying to slim down the rel
+
DISALLOW_COPY_AND_ASSIGN(LogRouter);
};

Powered by Google App Engine
This is Rietveld 408576698