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

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

Issue 5809001: Removed old login screen from source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed comments Created 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider_chromeos.cc
diff --git a/chrome/browser/automation/automation_provider_chromeos.cc b/chrome/browser/automation/automation_provider_chromeos.cc
index 6e1cc2bc10d8511f28a37a1321897da562ea3b97..8a25f98647f4947ab0f53f52d045f98a51b5981e 100644
--- a/chrome/browser/automation/automation_provider_chromeos.cc
+++ b/chrome/browser/automation/automation_provider_chromeos.cc
@@ -5,23 +5,18 @@
#include "chrome/browser/automation/automation_provider.h"
#include "chrome/browser/automation/automation_provider_observers.h"
-#include "chrome/browser/chromeos/login/login_screen.h"
-#include "chrome/browser/chromeos/login/user_manager.h"
-#include "chrome/browser/chromeos/login/wizard_controller.h"
-#include "views/window/window_gtk.h"
+#include "chrome/browser/chromeos/login/existing_user_controller.h"
+
+using chromeos::ExistingUserController;
void AutomationProvider::LoginWithUserAndPass(const std::string& username,
const std::string& password,
IPC::Message* reply_message) {
- WizardController* controller = WizardController::default_controller();
- chromeos::NewUserView* new_user_view =
- controller->GetLoginScreen()->view();
-
- new_user_view->SetUsername(username);
- new_user_view->SetPassword(password);
+ ExistingUserController* controller =
+ ExistingUserController::current_controller();
// Set up an observer (it will delete itself).
new LoginManagerObserver(this, reply_message);
- new_user_view->Login();
+ controller->LoginNewUser(username, password);
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698