| 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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 void SigninScreenHandler::HandleCreateAccount(const base::ListValue* args) { | 1051 void SigninScreenHandler::HandleCreateAccount(const base::ListValue* args) { |
| 1052 if (delegate_) | 1052 if (delegate_) |
| 1053 delegate_->CreateAccount(); | 1053 delegate_->CreateAccount(); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 void SigninScreenHandler::HandleOpenProxySettings(const base::ListValue* args) { | 1056 void SigninScreenHandler::HandleOpenProxySettings(const base::ListValue* args) { |
| 1057 BaseLoginDisplayHost::default_host()->OpenProxySettings(); | 1057 BaseLoginDisplayHost::default_host()->OpenProxySettings(); |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 void SigninScreenHandler::HandleLoginVisible(const base::ListValue* args) { | 1060 void SigninScreenHandler::HandleLoginVisible(const base::ListValue* args) { |
| 1061 content::NotificationService::current()->Notify( | 1061 if (!webui_visible_) { |
| 1062 chrome::NOTIFICATION_LOGIN_WEBUI_VISIBLE, | 1062 // There might be multiple messages from OOBE UI so send notifications after |
| 1063 content::NotificationService::AllSources(), | 1063 // the first one only. |
| 1064 content::NotificationService::NoDetails()); | 1064 content::NotificationService::current()->Notify( |
| 1065 chrome::NOTIFICATION_LOGIN_WEBUI_VISIBLE, |
| 1066 content::NotificationService::AllSources(), |
| 1067 content::NotificationService::NoDetails()); |
| 1068 } |
| 1069 webui_visible_ = true; |
| 1065 if (ScreenLocker::default_screen_locker()) | 1070 if (ScreenLocker::default_screen_locker()) |
| 1066 web_ui()->CallJavascriptFunction("login.AccountPickerScreen.setWallpaper"); | 1071 web_ui()->CallJavascriptFunction("login.AccountPickerScreen.setWallpaper"); |
| 1067 } | 1072 } |
| 1068 | 1073 |
| 1069 void SigninScreenHandler::StartClearingDnsCache() { | 1074 void SigninScreenHandler::StartClearingDnsCache() { |
| 1070 if (dns_clear_task_running_ || !g_browser_process->io_thread()) | 1075 if (dns_clear_task_running_ || !g_browser_process->io_thread()) |
| 1071 return; | 1076 return; |
| 1072 | 1077 |
| 1073 dns_cleared_ = false; | 1078 dns_cleared_ = false; |
| 1074 BrowserThread::PostTaskAndReply( | 1079 BrowserThread::PostTaskAndReply( |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 !dns_clear_task_running_ && | 1111 !dns_clear_task_running_ && |
| 1107 network_state_informer_->is_online()) { | 1112 network_state_informer_->is_online()) { |
| 1108 gaia_silent_load_ = true; | 1113 gaia_silent_load_ = true; |
| 1109 gaia_silent_load_network_ = | 1114 gaia_silent_load_network_ = |
| 1110 network_state_informer_->active_network_service_path(); | 1115 network_state_informer_->active_network_service_path(); |
| 1111 LoadAuthExtension(true, true, false); | 1116 LoadAuthExtension(true, true, false); |
| 1112 } | 1117 } |
| 1113 } | 1118 } |
| 1114 | 1119 |
| 1115 } // namespace chromeos | 1120 } // namespace chromeos |
| OLD | NEW |