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

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

Issue 12218078: Implement a policy to autologin a public account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last upload failed 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 1189
1190 is_account_picker_showing_first_time_ = true; 1190 is_account_picker_showing_first_time_ = true;
1191 MaybePreloadAuthExtension(); 1191 MaybePreloadAuthExtension();
1192 1192
1193 if (ScreenLocker::default_screen_locker()) { 1193 if (ScreenLocker::default_screen_locker()) {
1194 content::NotificationService::current()->Notify( 1194 content::NotificationService::current()->Notify(
1195 chrome::NOTIFICATION_LOCK_WEBUI_READY, 1195 chrome::NOTIFICATION_LOCK_WEBUI_READY,
1196 content::NotificationService::AllSources(), 1196 content::NotificationService::AllSources(),
1197 content::NotificationService::NoDetails()); 1197 content::NotificationService::NoDetails());
1198 } 1198 }
1199
1200 if (delegate_)
1201 delegate_->OnSigninScreenReady();
1199 } 1202 }
1200 1203
1201 void SigninScreenHandler::HandleWallpaperReady( 1204 void SigninScreenHandler::HandleWallpaperReady(
1202 const base::ListValue* args) { 1205 const base::ListValue* args) {
1203 if (ScreenLocker::default_screen_locker()) { 1206 if (ScreenLocker::default_screen_locker()) {
1204 content::NotificationService::current()->Notify( 1207 content::NotificationService::current()->Notify(
1205 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, 1208 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED,
1206 content::NotificationService::AllSources(), 1209 content::NotificationService::AllSources(),
1207 content::NotificationService::NoDetails()); 1210 content::NotificationService::NoDetails());
1208 } 1211 }
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 return IsSigninScreen(GetCurrentScreen()) && 1580 return IsSigninScreen(GetCurrentScreen()) &&
1578 ui_state_ == UI_STATE_GAIA_SIGNIN; 1581 ui_state_ == UI_STATE_GAIA_SIGNIN;
1579 } 1582 }
1580 1583
1581 bool SigninScreenHandler::IsSigninScreenHiddenByError() const { 1584 bool SigninScreenHandler::IsSigninScreenHiddenByError() const {
1582 return (GetCurrentScreen() == OobeUI::SCREEN_ERROR_MESSAGE) && 1585 return (GetCurrentScreen() == OobeUI::SCREEN_ERROR_MESSAGE) &&
1583 (IsSigninScreen(error_screen_actor_->parent_screen())); 1586 (IsSigninScreen(error_screen_actor_->parent_screen()));
1584 } 1587 }
1585 1588
1586 } // namespace chromeos 1589 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698