| OLD | NEW |
| 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/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 #if defined(USE_AURA) | 797 #if defined(USE_AURA) |
| 798 // Display the shutdown animation before actually requesting shutdown. | 798 // Display the shutdown animation before actually requesting shutdown. |
| 799 ash::Shell::GetInstance()->power_button_controller()->RequestShutdown(); | 799 ash::Shell::GetInstance()->power_button_controller()->RequestShutdown(); |
| 800 #else | 800 #else |
| 801 DBusThreadManager::Get()->GetPowerManagerClient()->RequestShutdown(); | 801 DBusThreadManager::Get()->GetPowerManagerClient()->RequestShutdown(); |
| 802 #endif | 802 #endif |
| 803 } | 803 } |
| 804 | 804 |
| 805 void SigninScreenHandler::HandleUserDeselected(const base::ListValue* args) { | 805 void SigninScreenHandler::HandleUserDeselected(const base::ListValue* args) { |
| 806 if (delegate_) | 806 if (delegate_) |
| 807 delegate_->UserDeselected(); | 807 delegate_->OnUserDeselected(); |
| 808 } | 808 } |
| 809 | 809 |
| 810 void SigninScreenHandler::HandleUserSelected(const base::ListValue* args) { | 810 void SigninScreenHandler::HandleUserSelected(const base::ListValue* args) { |
| 811 if (!delegate_) | 811 if (!delegate_) |
| 812 return; | 812 return; |
| 813 | 813 |
| 814 std::string email; | 814 std::string email; |
| 815 if (!args->GetString(0, &email)) { | 815 if (!args->GetString(0, &email)) { |
| 816 NOTREACHED(); | 816 NOTREACHED(); |
| 817 return; | 817 return; |
| 818 } | 818 } |
| 819 | 819 |
| 820 delegate_->UserSelected(email); | 820 delegate_->OnUserSelected(email); |
| 821 } | 821 } |
| 822 | 822 |
| 823 void SigninScreenHandler::HandleRemoveUser(const base::ListValue* args) { | 823 void SigninScreenHandler::HandleRemoveUser(const base::ListValue* args) { |
| 824 if (!delegate_) | 824 if (!delegate_) |
| 825 return; | 825 return; |
| 826 | 826 |
| 827 std::string email; | 827 std::string email; |
| 828 if (!args->GetString(0, &email)) { | 828 if (!args->GetString(0, &email)) { |
| 829 NOTREACHED(); | 829 NOTREACHED(); |
| 830 return; | 830 return; |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 !dns_clear_task_running_ && | 1104 !dns_clear_task_running_ && |
| 1105 network_state_informer_->is_online()) { | 1105 network_state_informer_->is_online()) { |
| 1106 gaia_silent_load_ = true; | 1106 gaia_silent_load_ = true; |
| 1107 gaia_silent_load_network_ = | 1107 gaia_silent_load_network_ = |
| 1108 network_state_informer_->active_network_service_path(); | 1108 network_state_informer_->active_network_service_path(); |
| 1109 LoadAuthExtension(true, true, false); | 1109 LoadAuthExtension(true, true, false); |
| 1110 } | 1110 } |
| 1111 } | 1111 } |
| 1112 | 1112 |
| 1113 } // namespace chromeos | 1113 } // namespace chromeos |
| OLD | NEW |