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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 466793002: [cleanup] Removed dead code from avatar selection screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index 3dba85a6fb3f3830d7023dddff6e19ff49f969a7..9ba3c1b4d54249410b4a8d7944c4fbb06de70783 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -453,25 +453,12 @@ void WizardController::ShowUserImageScreen() {
}
VLOG(1) << "Showing user image screen.";
- bool profile_picture_enabled = true;
- std::string user_id;
- if (screen_parameters_.get()) {
- screen_parameters_->GetBoolean("profile_picture_enabled",
- &profile_picture_enabled);
- screen_parameters_->GetString("user_id", &user_id);
- }
-
// Status area has been already shown at sign in screen so it
// doesn't make sense to hide it here and then show again at user session as
// this produces undesired UX transitions.
SetStatusAreaVisible(true);
- UserImageScreen* screen = GetUserImageScreen();
- if (!user_id.empty())
- screen->SetUserID(user_id);
- screen->SetProfilePictureEnabled(profile_picture_enabled);
-
- SetCurrentScreen(screen);
+ SetCurrentScreen(GetUserImageScreen());
}
void WizardController::ShowEulaScreen() {

Powered by Google App Engine
This is Rietveld 408576698