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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 10889024: [cros] Initialize OOBE in parallel when boot animation is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Subscription fixes Created 8 years, 3 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 void SigninScreenHandler::HandleCreateAccount(const base::ListValue* args) { 1069 void SigninScreenHandler::HandleCreateAccount(const base::ListValue* args) {
1070 if (delegate_) 1070 if (delegate_)
1071 delegate_->CreateAccount(); 1071 delegate_->CreateAccount();
1072 } 1072 }
1073 1073
1074 void SigninScreenHandler::HandleOpenProxySettings(const base::ListValue* args) { 1074 void SigninScreenHandler::HandleOpenProxySettings(const base::ListValue* args) {
1075 BaseLoginDisplayHost::default_host()->OpenProxySettings(); 1075 BaseLoginDisplayHost::default_host()->OpenProxySettings();
1076 } 1076 }
1077 1077
1078 void SigninScreenHandler::HandleLoginVisible(const base::ListValue* args) { 1078 void SigninScreenHandler::HandleLoginVisible(const base::ListValue* args) {
1079 content::NotificationService::current()->Notify( 1079 if (!webui_visible_) {
1080 chrome::NOTIFICATION_LOGIN_WEBUI_VISIBLE, 1080 // There might be multiple messages from OOBE UI so send notifications after
1081 content::NotificationService::AllSources(), 1081 // the first one only.
1082 content::NotificationService::NoDetails()); 1082 content::NotificationService::current()->Notify(
1083 chrome::NOTIFICATION_LOGIN_WEBUI_VISIBLE,
1084 content::NotificationService::AllSources(),
1085 content::NotificationService::NoDetails());
1086 }
1087 webui_visible_ = true;
1083 if (ScreenLocker::default_screen_locker()) 1088 if (ScreenLocker::default_screen_locker())
1084 web_ui()->CallJavascriptFunction("login.AccountPickerScreen.setWallpaper"); 1089 web_ui()->CallJavascriptFunction("login.AccountPickerScreen.setWallpaper");
1085 } 1090 }
1086 1091
1087 void SigninScreenHandler::StartClearingDnsCache() { 1092 void SigninScreenHandler::StartClearingDnsCache() {
1088 if (dns_clear_task_running_ || !g_browser_process->io_thread()) 1093 if (dns_clear_task_running_ || !g_browser_process->io_thread())
1089 return; 1094 return;
1090 1095
1091 dns_cleared_ = false; 1096 dns_cleared_ = false;
1092 BrowserThread::PostTaskAndReply( 1097 BrowserThread::PostTaskAndReply(
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 } 1152 }
1148 for (UserList::const_iterator it = users.begin(); it != users.end(); ++it) { 1153 for (UserList::const_iterator it = users.begin(); it != users.end(); ++it) {
1149 if (!cros_settings->FindEmailInList(kAccountsPrefUsers, (*it)->email())) { 1154 if (!cros_settings->FindEmailInList(kAccountsPrefUsers, (*it)->email())) {
1150 return false; 1155 return false;
1151 } 1156 }
1152 } 1157 }
1153 return true; 1158 return true;
1154 } 1159 }
1155 1160
1156 } // namespace chromeos 1161 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698