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

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

Issue 12213110: Implemented screen notifying users about malformed HWID. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Implemented wizard controller test. Created 7 years, 10 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/existing_user_controller.h" 5 #include "chrome/browser/chromeos/login/existing_user_controller.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 void ExistingUserController::ResyncUserData() { 558 void ExistingUserController::ResyncUserData() {
559 // LoginPerformer instance has state of the user so it should exist. 559 // LoginPerformer instance has state of the user so it should exist.
560 if (login_performer_.get()) 560 if (login_performer_.get())
561 login_performer_->ResyncEncryptedData(); 561 login_performer_->ResyncEncryptedData();
562 } 562 }
563 563
564 void ExistingUserController::SetDisplayEmail(const std::string& email) { 564 void ExistingUserController::SetDisplayEmail(const std::string& email) {
565 display_email_ = email; 565 display_email_ = email;
566 } 566 }
567 567
568 void ExistingUserController::ShowWrongHWIDScreen() {
569 host_->StartWizard(WizardController::kWrongHWIDScreenName, NULL);
570 login_display_->OnFadeOut();
571 }
572
568 void ExistingUserController::Signout() { 573 void ExistingUserController::Signout() {
569 NOTREACHED(); 574 NOTREACHED();
570 } 575 }
571 576
572 void ExistingUserController::OnEnrollmentOwnershipCheckCompleted( 577 void ExistingUserController::OnEnrollmentOwnershipCheckCompleted(
573 DeviceSettingsService::OwnershipStatus status, 578 DeviceSettingsService::OwnershipStatus status,
574 bool current_user_is_owner) { 579 bool current_user_is_owner) {
575 if (status == DeviceSettingsService::OWNERSHIP_NONE) { 580 if (status == DeviceSettingsService::OWNERSHIP_NONE) {
576 ShowEnrollmentScreen(false, std::string()); 581 ShowEnrollmentScreen(false, std::string());
577 } else if (status == DeviceSettingsService::OWNERSHIP_TAKEN) { 582 } else if (status == DeviceSettingsService::OWNERSHIP_TAKEN) {
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 // changed. 1018 // changed.
1014 UserManager::Get()->SaveUserOAuthStatus( 1019 UserManager::Get()->SaveUserOAuthStatus(
1015 username, 1020 username,
1016 User::OAUTH2_TOKEN_STATUS_INVALID); 1021 User::OAUTH2_TOKEN_STATUS_INVALID);
1017 1022
1018 login_display_->SetUIEnabled(true); 1023 login_display_->SetUIEnabled(true);
1019 login_display_->ShowGaiaPasswordChanged(username); 1024 login_display_->ShowGaiaPasswordChanged(username);
1020 } 1025 }
1021 1026
1022 } // namespace chromeos 1027 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.h ('k') | chrome/browser/chromeos/login/hwid_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698