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

Unified Diff: chrome/browser/chromeos/login/oobe_browsertest.cc

Issue 1610823003: Migrate call sites LoginDisplayHostImpl::default_host to LoginDisplayHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-add-supervised-user
Patch Set: Address comments 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/oobe_browsertest.cc
diff --git a/chrome/browser/chromeos/login/oobe_browsertest.cc b/chrome/browser/chromeos/login/oobe_browsertest.cc
index e566d290a69218db9c0e1891cce001ad4dfc204c..29e5c81257eb7f0f867cea2f2ee47ece0bd78dab 100644
--- a/chrome/browser/chromeos/login/oobe_browsertest.cc
+++ b/chrome/browser/chromeos/login/oobe_browsertest.cc
@@ -42,7 +42,7 @@ class OobeTest : public OobeBaseTest {
void TearDownOnMainThread() override {
// If the login display is still showing, exit gracefully.
- if (LoginDisplayHostImpl::default_host()) {
+ if (LoginDisplayHost::default_host()) {
base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&chrome::AttemptExit));
content::RunMessageLoop();
@@ -51,17 +51,15 @@ class OobeTest : public OobeBaseTest {
OobeBaseTest::TearDownOnMainThread();
}
- chromeos::WebUILoginDisplay* GetLoginDisplay() {
- chromeos::ExistingUserController* controller =
- chromeos::ExistingUserController::current_controller();
+ WebUILoginDisplay* GetLoginDisplay() {
+ ExistingUserController* controller =
+ ExistingUserController::current_controller();
CHECK(controller);
achuithb 2016/01/22 22:37:08 nit: drop check since line below crashes
jdufault 2016/01/22 23:04:15 Done.
- return static_cast<chromeos::WebUILoginDisplay*>(
- controller->login_display());
+ return static_cast<WebUILoginDisplay*>(controller->login_display());
}
views::Widget* GetLoginWindowWidget() {
- return static_cast<chromeos::LoginDisplayHostImpl*>(
- chromeos::LoginDisplayHostImpl::default_host())
+ return static_cast<LoginDisplayHostImpl*>(LoginDisplayHost::default_host())
->login_window_for_test();
}

Powered by Google App Engine
This is Rietveld 408576698