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

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: 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 void UserManagerImpl::EphemeralUserLoggedIn(const std::string& email) { 348 void UserManagerImpl::EphemeralUserLoggedIn(const std::string& email) {
349 is_current_user_new_ = true; 349 is_current_user_new_ = true;
350 is_current_user_ephemeral_ = true; 350 is_current_user_ephemeral_ = true;
351 logged_in_user_ = CreateUser(email); 351 logged_in_user_ = CreateUser(email);
352 SetInitialUserImage(email); 352 SetInitialUserImage(email);
353 SetInitialUserWallpaper(email); 353 SetInitialUserWallpaper(email);
354 NotifyOnLogin(); 354 NotifyOnLogin();
355 } 355 }
356 356
357 void UserManagerImpl::StubUserLoggedIn() { 357 void UserManagerImpl::StubUserLoggedIn() {
358 is_current_user_ephemeral_ = true;
359 logged_in_user_ = new User(kStubUser, false); 358 logged_in_user_ = new User(kStubUser, false);
360 logged_in_user_->SetImage(GetDefaultImage(kStubDefaultImageIndex), 359 logged_in_user_->SetImage(GetDefaultImage(kStubDefaultImageIndex),
361 kStubDefaultImageIndex); 360 kStubDefaultImageIndex);
362 } 361 }
363 362
364 void UserManagerImpl::SetLoggedInUserWallpaper() { 363 void UserManagerImpl::SetLoggedInUserWallpaper() {
365 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 364 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
366 365
367 if (!IsUserLoggedIn() || IsLoggedInAsStub()) { 366 if (!IsUserLoggedIn() || IsLoggedInAsStub()) {
368 ash::Shell::GetInstance()->desktop_background_controller()-> 367 ash::Shell::GetInstance()->desktop_background_controller()->
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 BrowserThread::PostTask( 1524 BrowserThread::PostTask(
1526 BrowserThread::FILE, 1525 BrowserThread::FILE,
1527 FROM_HERE, 1526 FROM_HERE,
1528 base::Bind(&UserManagerImpl::DeleteUserImage, 1527 base::Bind(&UserManagerImpl::DeleteUserImage,
1529 base::Unretained(this), 1528 base::Unretained(this),
1530 image_path)); 1529 image_path));
1531 } 1530 }
1532 } 1531 }
1533 1532
1534 } // namespace chromeos 1533 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698