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

Unified Diff: chrome/browser/automation/testing_automation_provider_chromeos.cc

Issue 8395042: [cros,de-hack] Get rid of singleton for the WebUILoginScreen. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comment nit Created 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/base_login_display_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider_chromeos.cc
diff --git a/chrome/browser/automation/testing_automation_provider_chromeos.cc b/chrome/browser/automation/testing_automation_provider_chromeos.cc
index b660a7a043a7e098d2c78c033119dc59a237bef0..8258d73c7d0aa453d9337356aa21ed89784404bb 100644
--- a/chrome/browser/automation/testing_automation_provider_chromeos.cc
+++ b/chrome/browser/automation/testing_automation_provider_chromeos.cc
@@ -280,7 +280,7 @@ void TestingAutomationProvider::Login(DictionaryValue* args,
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kWebUILogin)) {
// WebUI login.
chromeos::WebUILoginDisplay* webui_login_display =
- chromeos::WebUILoginDisplay::GetInstance();
+ static_cast<chromeos::WebUILoginDisplay*>(controller->login_display());
webui_login_display->ShowSigninScreenForCreds(username, password);
} else {
// Native UI login.
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/base_login_display_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698