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

Unified Diff: chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Fix Win GN build. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc
diff --git a/chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc b/chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc
index 2648f7f26d212508c8b74a354c8ce60915990644..99ef7a4f2f76f6f18c735ddb55cc7a65d93158ac 100644
--- a/chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc
+++ b/chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc
@@ -223,14 +223,15 @@ void SupervisedUserCreationScreen::AuthenticateManager(
manager_signin_in_progress_ = true;
UserFlow* flow = new SupervisedUserCreationFlow(manager_id);
- ChromeUserManager::Get()->SetUserFlow(manager_id, flow);
+ ChromeUserManager::Get()->SetUserFlow(AccountId::FromUserEmail(manager_id),
+ flow);
// Make sure no two controllers exist at the same time.
controller_.reset();
controller_.reset(new SupervisedUserCreationControllerNew(this, manager_id));
- UserContext user_context(manager_id);
+ UserContext user_context(AccountId::FromUserEmail(manager_id));
user_context.SetKey(Key(manager_password));
ExistingUserController::current_controller()->Login(user_context,
SigninSpecifics());
@@ -484,7 +485,8 @@ bool SupervisedUserCreationScreen::FindUserByDisplayName(
void SupervisedUserCreationScreen::ApplyPicture() {
std::string user_id = controller_->GetSupervisedUserId();
UserImageManager* image_manager =
- ChromeUserManager::Get()->GetUserImageManager(user_id);
+ ChromeUserManager::Get()->GetUserImageManager(
+ AccountId::FromUserEmail(user_id));
switch (selected_image_) {
case user_manager::User::USER_IMAGE_EXTERNAL:
// Photo decoding may not have been finished yet.

Powered by Google App Engine
This is Rietveld 408576698