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

Unified Diff: chrome/browser/lifetime/keep_alive_registry.cc

Issue 2719813005: CrOS: Add print statements to help debug BrowserProcessImpl::Unpin crash. (Closed)
Patch Set: Whitespace. Created 3 years, 10 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: chrome/browser/lifetime/keep_alive_registry.cc
diff --git a/chrome/browser/lifetime/keep_alive_registry.cc b/chrome/browser/lifetime/keep_alive_registry.cc
index f61ef82706df2cd271f97e0e78fa3266f35d7a13..862c33180bf0f618938dd70bf472bae82ea98808 100644
--- a/chrome/browser/lifetime/keep_alive_registry.cc
+++ b/chrome/browser/lifetime/keep_alive_registry.cc
@@ -88,6 +88,7 @@ void KeepAliveRegistry::Register(KeepAliveOrigin origin,
++registered_keep_alives_[origin];
++registered_count_;
+ LOG(ERROR) << "Registered: " << origin << ", Count:" << registered_count_;
if (restart == KeepAliveRestartOption::ENABLED) {
++restart_allowed_keep_alives_[origin];
++restart_allowed_count_;
@@ -113,6 +114,7 @@ void KeepAliveRegistry::Unregister(KeepAliveOrigin origin,
--registered_count_;
DCHECK_GE(registered_count_, 0);
DecrementCount(origin, &registered_keep_alives_);
+ LOG(ERROR) << "Unregistered: " << origin << ", Count:" << registered_count_;
if (restart == KeepAliveRestartOption::ENABLED) {
--restart_allowed_count_;

Powered by Google App Engine
This is Rietveld 408576698