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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/automation/automation_provider.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include "chrome/browser/automation/automation_provider_observers.h" 7 #include "chrome/browser/automation/automation_provider_observers.h"
8 #include "chrome/browser/chromeos/login/login_screen.h" 8 #include "chrome/browser/chromeos/login/existing_user_controller.h"
9 #include "chrome/browser/chromeos/login/user_manager.h" 9
10 #include "chrome/browser/chromeos/login/wizard_controller.h" 10 using chromeos::ExistingUserController;
11 #include "views/window/window_gtk.h"
12 11
13 void AutomationProvider::LoginWithUserAndPass(const std::string& username, 12 void AutomationProvider::LoginWithUserAndPass(const std::string& username,
14 const std::string& password, 13 const std::string& password,
15 IPC::Message* reply_message) { 14 IPC::Message* reply_message) {
16 WizardController* controller = WizardController::default_controller(); 15 ExistingUserController* controller =
17 chromeos::NewUserView* new_user_view = 16 ExistingUserController::current_controller();
18 controller->GetLoginScreen()->view();
19
20 new_user_view->SetUsername(username);
21 new_user_view->SetPassword(password);
22 17
23 // Set up an observer (it will delete itself). 18 // Set up an observer (it will delete itself).
24 new LoginManagerObserver(this, reply_message); 19 new LoginManagerObserver(this, reply_message);
25 20
26 new_user_view->Login(); 21 controller->LoginNewUser(username, password);
27 } 22 }
OLDNEW
« 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