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

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

Issue 1539713002: Move default_host from LoginDisplayHostImpl to LoginDisplayHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Move supervised user changes to a dependent CL Created 4 years, 11 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.cc
diff --git a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
index 86d43b471cbd9e42067d4b467b36ac19c1a46e95..f5252a7a2cdfa40d8e459ff343b278b6de8546b3 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
+++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
@@ -249,9 +249,6 @@ void ResetKeyboardOverscrollOverride() {
namespace chromeos {
// static
-LoginDisplayHost* LoginDisplayHostImpl::default_host_ = NULL;
-
-// static
const int LoginDisplayHostImpl::kShowLoginWebUIid = 0x1111;
////////////////////////////////////////////////////////////////////////////////
@@ -306,7 +303,7 @@ LoginDisplayHostImpl::LoginDisplayHostImpl(const gfx::Rect& background_bounds)
chrome::NOTIFICATION_LOGIN_USER_CHANGED,
content::NotificationService::AllSources());
- DCHECK(default_host_ == NULL);
+ DCHECK(default_host() == nullptr);
default_host_ = this;
// Make sure chrome won't exit while we are at login/oobe screen.
@@ -402,7 +399,7 @@ LoginDisplayHostImpl::~LoginDisplayHostImpl() {
// Let chrome process exit after login/oobe screen if needed.
chrome::DecrementKeepAliveCount();
- default_host_ = NULL;
+ default_host_ = nullptr;
// TODO(tengs): This should be refactored. See crbug.com/314934.
if (user_manager::UserManager::Get()->IsCurrentUserNew()) {
// DriveOptInController will delete itself when finished.
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_display_host_impl.h ('k') | chrome/browser/chromeos/login/ui/mock_login_display_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698