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

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

Issue 1376063005: Cleanup: Pull some browser keep alive functions into its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes Created 5 years, 2 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 55e6c176a11323721ef2720c9321413af41274fe..b53a439237735ad3c63b88a5183bcbf46f0789d8 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host_impl.h
+++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.h
@@ -33,6 +33,10 @@
class PrefService;
+namespace browser_lifetime {
+class ScopedKeepAlive;
+}
+
namespace content {
class RenderFrameHost;
class WebContents;
@@ -306,6 +310,9 @@ class LoginDisplayHostImpl : public LoginDisplayHost,
// True is subscribed as keyboard controller observer.
bool is_observing_keyboard_;
+ // Keeps the browser alife on the login/oobe screen.
+ scoped_ptr<browser_lifetime::ScopedKeepAlive> keep_alive_;
+
// Keeps a copy of the old Drag'n'Drop client, so that it would be disabled
// during a login session and restored afterwards.
scoped_ptr<aura::client::ScopedDragDropDisabler> scoped_drag_drop_disabler_;

Powered by Google App Engine
This is Rietveld 408576698