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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_display.cc

Issue 7497060: Support for guest signin and new user accounts in gaia signin screen. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chromeos/login/webui_login_display.h" 5 #include "chrome/browser/chromeos/login/webui_login_display.h"
6 6
7 #include "chrome/browser/chromeos/login/webui_login_view.h" 7 #include "chrome/browser/chromeos/login/webui_login_view.h"
8 #include "chrome/browser/chromeos/wm_ipc.h" 8 #include "chrome/browser/chromeos/wm_ipc.h"
9 #include "chrome/browser/profiles/profile_manager.h" 9 #include "chrome/browser/profiles/profile_manager.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const std::string& password) { 154 const std::string& password) {
155 DCHECK(delegate_); 155 DCHECK(delegate_);
156 delegate_->Login(username, password); 156 delegate_->Login(username, password);
157 } 157 }
158 158
159 void WebUILoginDisplay::LoginAsGuest() { 159 void WebUILoginDisplay::LoginAsGuest() {
160 DCHECK(delegate_); 160 DCHECK(delegate_);
161 delegate_->LoginAsGuest(); 161 delegate_->LoginAsGuest();
162 } 162 }
163 163
164 void WebUILoginDisplay::CreateAccount() {
165 DCHECK(delegate_);
166 delegate_->CreateAccount();
167 }
168
164 void WebUILoginDisplay::RemoveUser(const std::string& username) { 169 void WebUILoginDisplay::RemoveUser(const std::string& username) {
165 UserManager::Get()->RemoveUser(username, this); 170 UserManager::Get()->RemoveUser(username, this);
166 } 171 }
167 172
168 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { 173 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() {
169 delegate_->OnStartEnterpriseEnrollment(); 174 delegate_->OnStartEnterpriseEnrollment();
170 } 175 }
171 176
172 void WebUILoginDisplay::SetWebUIHandler( 177 void WebUILoginDisplay::SetWebUIHandler(
173 LoginDisplayWebUIHandler* webui_handler) { 178 LoginDisplayWebUIHandler* webui_handler) {
174 webui_handler_ = webui_handler; 179 webui_handler_ = webui_handler;
175 } 180 }
176 181
177 // WebUILoginDisplay, private: ------------------------------------------------- 182 // WebUILoginDisplay, private: -------------------------------------------------
178 183
179 // Singleton implementation: --------------------------------------------------- 184 // Singleton implementation: ---------------------------------------------------
180 185
181 WebUILoginDisplay::WebUILoginDisplay() 186 WebUILoginDisplay::WebUILoginDisplay()
182 : LoginDisplay(NULL, gfx::Rect()), 187 : LoginDisplay(NULL, gfx::Rect()),
183 show_guest_(false), 188 show_guest_(false),
184 show_new_user_(false), 189 show_new_user_(false),
185 login_window_(NULL), 190 login_window_(NULL),
186 webui_handler_(NULL) { 191 webui_handler_(NULL) {
187 } 192 }
188 193
189 } // namespace chromeos 194 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_display.h ('k') | chrome/browser/resources/chromeos/login/screen_gaia_signin.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698