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

Unified Diff: chrome/browser/chromeos/login/ui/login_display_host_impl.h

Issue 1778873002: Replace Increment/DecrementKeepAliveCount by ScopedKeepAlives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KAObserver
Patch Set: replace the commented dcheck by a dlog 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/chromeos/login/ui/login_display_host_impl.h
diff --git a/chrome/browser/chromeos/login/ui/login_display_host_impl.h b/chrome/browser/chromeos/login/ui/login_display_host_impl.h
index 45b3f70256e450694aa96d8e7f282de9dcfbb26f..e4063c4a7f71da5c36f5d7b0b60b80a139bba0c3 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host_impl.h
+++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.h
@@ -35,6 +35,7 @@
#include "ui/wm/public/scoped_drag_drop_disabler.h"
class PrefService;
+class ScopedKeepAlive;
namespace content {
class RenderFrameHost;
@@ -218,6 +219,9 @@ class LoginDisplayHostImpl : public LoginDisplayHost,
// Demo app launcher.
scoped_ptr<DemoAppLauncher> demo_app_launcher_;
+ // Make sure chrome won't exit while we are at login/oobe screen.
+ scoped_ptr<ScopedKeepAlive> keep_alive_;
+
// Has ShutdownDisplayHost() already been called? Used to avoid posting our
// own deletion to the message loop twice if the user logs out while we're
// still in the process of cleaning up after login (http://crbug.com/134463).
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/chromeos/login/ui/login_display_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698