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

Unified Diff: chrome/browser/chromeos/login/ui/captive_portal_window_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/ui/captive_portal_window_browsertest.cc
diff --git a/chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc b/chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc
index 1742b01f13053e8092ce3fb0a20ce7bb0b16130e..89ede14c160a306192eb5adf36f669b04f401d2a 100644
--- a/chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc
+++ b/chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc
@@ -13,7 +13,7 @@
#include "chrome/browser/chromeos/login/startup_utils.h"
#include "chrome/browser/chromeos/login/test/oobe_screen_waiter.h"
#include "chrome/browser/chromeos/login/ui/captive_portal_window_proxy.h"
-#include "chrome/browser/chromeos/login/ui/login_display_host_impl.h"
+#include "chrome/browser/chromeos/login/ui/login_display_host.h"
#include "chrome/browser/chromeos/login/ui/webui_login_view.h"
#include "chrome/browser/chromeos/net/network_portal_detector_test_impl.h"
#include "chrome/test/base/in_process_browser_test.h"
@@ -80,11 +80,9 @@ class CaptivePortalWindowTest : public InProcessBrowserTest {
}
void SetUpOnMainThread() override {
- host_ = LoginDisplayHostImpl::default_host();
- CHECK(host_);
+ host_ = LoginDisplayHost::default_host();
content::WebContents* web_contents =
- LoginDisplayHostImpl::default_host()->GetWebUILoginView()->
- GetWebContents();
+ host_->GetWebUILoginView()->GetWebContents();
captive_portal_window_proxy_.reset(
new CaptivePortalWindowProxy(&delegate_, web_contents));
}
@@ -214,8 +212,7 @@ IN_PROC_BROWSER_TEST_F(CaptivePortalWindowCtorDtorTest, PRE_OpenPortalDialog) {
}
IN_PROC_BROWSER_TEST_F(CaptivePortalWindowCtorDtorTest, OpenPortalDialog) {
- LoginDisplayHostImpl* host =
- static_cast<LoginDisplayHostImpl*>(LoginDisplayHostImpl::default_host());
+ LoginDisplayHost* host = LoginDisplayHost::default_host();
ASSERT_TRUE(host);
OobeUI* oobe = host->GetOobeUI();
ASSERT_TRUE(oobe);

Powered by Google App Engine
This is Rietveld 408576698