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

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

Issue 11415015: Remove use of index in wallpaper picker code and some refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser tests Created 8 years, 1 month 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 | « chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/accessibility/accessibility_util.h" 7 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
8 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 8 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
9 #include "chrome/browser/chromeos/input_method/xkeyboard.h" 9 #include "chrome/browser/chromeos/input_method/xkeyboard.h"
10 #include "chrome/browser/chromeos/login/screen_locker.h" 10 #include "chrome/browser/chromeos/login/screen_locker.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 DCHECK(delegate_); 220 DCHECK(delegate_);
221 if (delegate_) 221 if (delegate_)
222 delegate_->CreateAccount(); 222 delegate_->CreateAccount();
223 } 223 }
224 224
225 void WebUILoginDisplay::LoadWallpaper(const std::string& username) { 225 void WebUILoginDisplay::LoadWallpaper(const std::string& username) {
226 WallpaperManager::Get()->SetUserWallpaper(username); 226 WallpaperManager::Get()->SetUserWallpaper(username);
227 } 227 }
228 228
229 void WebUILoginDisplay::LoadSigninWallpaper() { 229 void WebUILoginDisplay::LoadSigninWallpaper() {
230 WallpaperManager::Get()->SetSigninWallpaper(); 230 WallpaperManager::Get()->SetDefaultWallpaper();
231 } 231 }
232 232
233 void WebUILoginDisplay::RemoveUser(const std::string& username) { 233 void WebUILoginDisplay::RemoveUser(const std::string& username) {
234 UserManager::Get()->RemoveUser(username, this); 234 UserManager::Get()->RemoveUser(username, this);
235 } 235 }
236 236
237 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { 237 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() {
238 if (delegate_) 238 if (delegate_)
239 delegate_->OnStartEnterpriseEnrollment(); 239 delegate_->OnStartEnterpriseEnrollment();
240 } 240 }
(...skipping 30 matching lines...) Expand all
271 bool WebUILoginDisplay::IsShowNewUser() const { 271 bool WebUILoginDisplay::IsShowNewUser() const {
272 return show_new_user_; 272 return show_new_user_;
273 } 273 }
274 274
275 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { 275 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) {
276 if (delegate_) 276 if (delegate_)
277 delegate_->SetDisplayEmail(email); 277 delegate_->SetDisplayEmail(email);
278 } 278 }
279 279
280 } // namespace chromeos 280 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698