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

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

Issue 1778873002: Replace Increment/DecrementKeepAliveCount by ScopedKeepAlives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KAObserver
Patch Set: remove registry destructor dchecks Created 4 years, 9 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_types.cc
diff --git a/chrome/browser/lifetime/keep_alive_types.cc b/chrome/browser/lifetime/keep_alive_types.cc
index a96050ee1aa989d4b60aef9a8f5227eb0c226db8..d1cd8f31208fd19194462b849436138758e0844a 100644
--- a/chrome/browser/lifetime/keep_alive_types.cc
+++ b/chrome/browser/lifetime/keep_alive_types.cc
@@ -8,16 +8,24 @@
#ifndef NDEBUG
std::ostream& operator<<(std::ostream& out, const KeepAliveOrigin& origin) {
switch (origin) {
+ case KeepAliveOrigin::APP_CONTROLLER:
+ return out << "APP_CONTROLLER";
+ case KeepAliveOrigin::BROWSER_PROCESS_CHROMEOS:
+ return out << "BROWSER_PROCESS_CHROMEOS";
case KeepAliveOrigin::BACKGROUND_MODE_MANAGER:
return out << "BACKGROUND_MODE_MANAGER";
case KeepAliveOrigin::BACKGROUND_MODE_MANAGER_STARTUP:
return out << "BACKGROUND_MODE_MANAGER_STARTUP";
+ case KeepAliveOrigin::LOGIN_DISPLAY_HOST_IMPL:
+ return out << "LOGIN_DISPLAY_HOST_IMPL";
case KeepAliveOrigin::APP_LIST_SERVICE_VIEWS:
return out << "APP_LIST_SERVICE_VIEWS";
case KeepAliveOrigin::APP_LIST_SHOWER:
return out << "APP_LIST_SHOWER";
case KeepAliveOrigin::CHROME_APP_DELEGATE:
return out << "CHROME_APP_DELEGATE";
+ case KeepAliveOrigin::PANEL:
+ return out << "PANEL";
case KeepAliveOrigin::PANEL_VIEW:
return out << "PANEL_VIEW";
case KeepAliveOrigin::PROFILE_LOADER:

Powered by Google App Engine
This is Rietveld 408576698