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

Unified Diff: chrome/browser/chromeos/login/test/oobe_base_test.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/test/oobe_base_test.cc
diff --git a/chrome/browser/chromeos/login/test/oobe_base_test.cc b/chrome/browser/chromeos/login/test/oobe_base_test.cc
index d809454a5a7b1d5af43fd67ff6117d3ecd86eb88..8f480f66d18a0ce37c9256c043bbda6b5be58bc1 100644
--- a/chrome/browser/chromeos/login/test/oobe_base_test.cc
+++ b/chrome/browser/chromeos/login/test/oobe_base_test.cc
@@ -102,9 +102,8 @@ void OobeBaseTest::SetUpOnMainThread() {
chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE,
content::NotificationService::AllSources()));
- js_checker_.set_web_contents(LoginDisplayHostImpl::default_host()
- ->GetWebUILoginView()
- ->GetWebContents());
+ js_checker_.set_web_contents(
+ LoginDisplayHost::default_host()->GetWebUILoginView()->GetWebContents());
test::UserSessionManagerTestApi session_manager_test_api(
UserSessionManager::GetInstance());
@@ -117,7 +116,7 @@ void OobeBaseTest::SetUpOnMainThread() {
void OobeBaseTest::TearDownOnMainThread() {
// 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();
@@ -202,8 +201,7 @@ void OobeBaseTest::JsExpect(const std::string& expression) {
}
content::WebUI* OobeBaseTest::GetLoginUI() {
- return static_cast<chromeos::LoginDisplayHostImpl*>(
- chromeos::LoginDisplayHostImpl::default_host())->GetOobeUI()->web_ui();
+ return LoginDisplayHost::default_host()->GetOobeUI()->web_ui();
}
WebUILoginDisplay* OobeBaseTest::GetLoginDisplay() {

Powered by Google App Engine
This is Rietveld 408576698