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

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

Issue 10532048: [cros] Initial WebRTC-enabled implementation of user image picker on OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup and addressed comments Created 8 years, 6 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) 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/user_manager_impl.h" 5 #include "chrome/browser/chromeos/login/user_manager_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/desktop_background/desktop_background_controller.h" 10 #include "ash/desktop_background/desktop_background_controller.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 void UserManagerImpl::EphemeralUserLoggedIn(const std::string& email) { 346 void UserManagerImpl::EphemeralUserLoggedIn(const std::string& email) {
347 is_current_user_new_ = true; 347 is_current_user_new_ = true;
348 is_current_user_ephemeral_ = true; 348 is_current_user_ephemeral_ = true;
349 logged_in_user_ = CreateUser(email); 349 logged_in_user_ = CreateUser(email);
350 SetInitialUserImage(email); 350 SetInitialUserImage(email);
351 SetInitialUserWallpaper(email); 351 SetInitialUserWallpaper(email);
352 NotifyOnLogin(); 352 NotifyOnLogin();
353 } 353 }
354 354
355 void UserManagerImpl::StubUserLoggedIn() { 355 void UserManagerImpl::StubUserLoggedIn() {
356 is_current_user_ephemeral_ = true;
357 logged_in_user_ = new User(kStubUser, false); 356 logged_in_user_ = new User(kStubUser, false);
358 logged_in_user_->SetImage(GetDefaultImage(kStubDefaultImageIndex), 357 logged_in_user_->SetImage(GetDefaultImage(kStubDefaultImageIndex),
359 kStubDefaultImageIndex); 358 kStubDefaultImageIndex);
360 } 359 }
361 360
362 void UserManagerImpl::SetLoggedInUserWallpaper() { 361 void UserManagerImpl::SetLoggedInUserWallpaper() {
363 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 362 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
364 363
365 if (!IsUserLoggedIn() || IsLoggedInAsStub()) { 364 if (!IsUserLoggedIn() || IsLoggedInAsStub()) {
366 ash::Shell::GetInstance()->desktop_background_controller()-> 365 ash::Shell::GetInstance()->desktop_background_controller()->
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 BrowserThread::PostTask( 1507 BrowserThread::PostTask(
1509 BrowserThread::FILE, 1508 BrowserThread::FILE,
1510 FROM_HERE, 1509 FROM_HERE,
1511 base::Bind(&UserManagerImpl::DeleteUserImage, 1510 base::Bind(&UserManagerImpl::DeleteUserImage,
1512 base::Unretained(this), 1511 base::Unretained(this),
1513 image_path)); 1512 image_path));
1514 } 1513 }
1515 } 1514 }
1516 1515
1517 } // namespace chromeos 1516 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/login.html » ('j') | chrome/common/chrome_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698