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

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

Issue 106433007: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 12 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 // LoginPerformer instance has state of the user so it should exist. 596 // LoginPerformer instance has state of the user so it should exist.
597 if (login_performer_.get()) 597 if (login_performer_.get())
598 login_performer_->ResyncEncryptedData(); 598 login_performer_->ResyncEncryptedData();
599 } 599 }
600 600
601 void ExistingUserController::SetDisplayEmail(const std::string& email) { 601 void ExistingUserController::SetDisplayEmail(const std::string& email) {
602 display_email_ = email; 602 display_email_ = email;
603 } 603 }
604 604
605 void ExistingUserController::ShowWrongHWIDScreen() { 605 void ExistingUserController::ShowWrongHWIDScreen() {
606 scoped_ptr<DictionaryValue> params; 606 scoped_ptr<base::DictionaryValue> params;
607 host_->StartWizard(WizardController::kWrongHWIDScreenName, params.Pass()); 607 host_->StartWizard(WizardController::kWrongHWIDScreenName, params.Pass());
608 login_display_->OnFadeOut(); 608 login_display_->OnFadeOut();
609 } 609 }
610 610
611 void ExistingUserController::Signout() { 611 void ExistingUserController::Signout() {
612 NOTREACHED(); 612 NOTREACHED();
613 } 613 }
614 614
615 void ExistingUserController::OnConsumerKioskModeCheckCompleted( 615 void ExistingUserController::OnConsumerKioskModeCheckCompleted(
616 KioskAppManager::ConsumerKioskModeStatus status) { 616 KioskAppManager::ConsumerKioskModeStatus status) {
(...skipping 18 matching lines...) Expand all
635 } 635 }
636 } else { 636 } else {
637 // OwnershipService::GetStatusAsync is supposed to return either 637 // OwnershipService::GetStatusAsync is supposed to return either
638 // OWNERSHIP_NONE or OWNERSHIP_TAKEN. 638 // OWNERSHIP_NONE or OWNERSHIP_TAKEN.
639 NOTREACHED(); 639 NOTREACHED();
640 } 640 }
641 } 641 }
642 642
643 void ExistingUserController::ShowEnrollmentScreen(bool is_auto_enrollment, 643 void ExistingUserController::ShowEnrollmentScreen(bool is_auto_enrollment,
644 const std::string& user) { 644 const std::string& user) {
645 scoped_ptr<DictionaryValue> params; 645 scoped_ptr<base::DictionaryValue> params;
646 if (is_auto_enrollment) { 646 if (is_auto_enrollment) {
647 params.reset(new DictionaryValue()); 647 params.reset(new base::DictionaryValue());
648 params->SetBoolean("is_auto_enrollment", true); 648 params->SetBoolean("is_auto_enrollment", true);
649 params->SetString("user", user); 649 params->SetString("user", user);
650 } 650 }
651 host_->StartWizard(WizardController::kEnrollmentScreenName, 651 host_->StartWizard(WizardController::kEnrollmentScreenName,
652 params.Pass()); 652 params.Pass());
653 login_display_->OnFadeOut(); 653 login_display_->OnFadeOut();
654 } 654 }
655 655
656 void ExistingUserController::ShowResetScreen() { 656 void ExistingUserController::ShowResetScreen() {
657 scoped_ptr<DictionaryValue> params; 657 scoped_ptr<base::DictionaryValue> params;
658 host_->StartWizard(WizardController::kResetScreenName, params.Pass()); 658 host_->StartWizard(WizardController::kResetScreenName, params.Pass());
659 login_display_->OnFadeOut(); 659 login_display_->OnFadeOut();
660 } 660 }
661 661
662 void ExistingUserController::ShowKioskEnableScreen() { 662 void ExistingUserController::ShowKioskEnableScreen() {
663 scoped_ptr<DictionaryValue> params; 663 scoped_ptr<base::DictionaryValue> params;
664 host_->StartWizard(WizardController::kKioskEnableScreenName, params.Pass()); 664 host_->StartWizard(WizardController::kKioskEnableScreenName, params.Pass());
665 login_display_->OnFadeOut(); 665 login_display_->OnFadeOut();
666 } 666 }
667 667
668 void ExistingUserController::ShowKioskAutolaunchScreen() { 668 void ExistingUserController::ShowKioskAutolaunchScreen() {
669 scoped_ptr<DictionaryValue> params; 669 scoped_ptr<base::DictionaryValue> params;
670 host_->StartWizard(WizardController::kKioskAutolaunchScreenName, 670 host_->StartWizard(WizardController::kKioskAutolaunchScreenName,
671 params.Pass()); 671 params.Pass());
672 login_display_->OnFadeOut(); 672 login_display_->OnFadeOut();
673 } 673 }
674 674
675 void ExistingUserController::ShowTPMError() { 675 void ExistingUserController::ShowTPMError() {
676 login_display_->SetUIEnabled(false); 676 login_display_->SetUIEnabled(false);
677 login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR); 677 login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR);
678 } 678 }
679 679
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 void ExistingUserController::DeviceSettingsChanged() { 922 void ExistingUserController::DeviceSettingsChanged() {
923 if (host_ != NULL) { 923 if (host_ != NULL) {
924 // Signed settings or user list changed. Notify views and update them. 924 // Signed settings or user list changed. Notify views and update them.
925 UpdateLoginDisplay(chromeos::UserManager::Get()->GetUsers()); 925 UpdateLoginDisplay(chromeos::UserManager::Get()->GetUsers());
926 ConfigurePublicSessionAutoLogin(); 926 ConfigurePublicSessionAutoLogin();
927 return; 927 return;
928 } 928 }
929 } 929 }
930 930
931 void ExistingUserController::ActivateWizard(const std::string& screen_name) { 931 void ExistingUserController::ActivateWizard(const std::string& screen_name) {
932 scoped_ptr<DictionaryValue> params; 932 scoped_ptr<base::DictionaryValue> params;
933 host_->StartWizard(screen_name, params.Pass()); 933 host_->StartWizard(screen_name, params.Pass());
934 } 934 }
935 935
936 void ExistingUserController::ConfigurePublicSessionAutoLogin() { 936 void ExistingUserController::ConfigurePublicSessionAutoLogin() {
937 std::string auto_login_account_id; 937 std::string auto_login_account_id;
938 cros_settings_->GetString(kAccountsPrefDeviceLocalAccountAutoLoginId, 938 cros_settings_->GetString(kAccountsPrefDeviceLocalAccountAutoLoginId,
939 &auto_login_account_id); 939 &auto_login_account_id);
940 const std::vector<policy::DeviceLocalAccount> device_local_accounts = 940 const std::vector<policy::DeviceLocalAccount> device_local_accounts =
941 policy::GetDeviceLocalAccounts(cros_settings_); 941 policy::GetDeviceLocalAccounts(cros_settings_);
942 942
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 } 1108 }
1109 1109
1110 void ExistingUserController::SendAccessibilityAlert( 1110 void ExistingUserController::SendAccessibilityAlert(
1111 const std::string& alert_text) { 1111 const std::string& alert_text) {
1112 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); 1112 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text);
1113 SendControlAccessibilityNotification( 1113 SendControlAccessibilityNotification(
1114 ui::AccessibilityTypes::EVENT_VALUE_CHANGED, &event); 1114 ui::AccessibilityTypes::EVENT_VALUE_CHANGED, &event);
1115 } 1115 }
1116 1116
1117 } // namespace chromeos 1117 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/locale_change_guard.cc ('k') | chrome/browser/chromeos/login/login_display_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698