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

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: remove some notifications from FakeSessionManagerClient Created 7 years, 9 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 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 1423
1424 is_account_picker_showing_first_time_ = true; 1424 is_account_picker_showing_first_time_ = true;
1425 MaybePreloadAuthExtension(); 1425 MaybePreloadAuthExtension();
1426 1426
1427 if (ScreenLocker::default_screen_locker()) { 1427 if (ScreenLocker::default_screen_locker()) {
1428 content::NotificationService::current()->Notify( 1428 content::NotificationService::current()->Notify(
1429 chrome::NOTIFICATION_LOCK_WEBUI_READY, 1429 chrome::NOTIFICATION_LOCK_WEBUI_READY,
1430 content::NotificationService::AllSources(), 1430 content::NotificationService::AllSources(),
1431 content::NotificationService::NoDetails()); 1431 content::NotificationService::NoDetails());
1432 } 1432 }
1433
1434 if (delegate_)
1435 delegate_->OnSigninScreenReady();
1433 } 1436 }
1434 1437
1435 void SigninScreenHandler::HandleWallpaperReady( 1438 void SigninScreenHandler::HandleWallpaperReady(
1436 const base::ListValue* args) { 1439 const base::ListValue* args) {
1437 if (ScreenLocker::default_screen_locker()) { 1440 if (ScreenLocker::default_screen_locker()) {
1438 content::NotificationService::current()->Notify( 1441 content::NotificationService::current()->Notify(
1439 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, 1442 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED,
1440 content::NotificationService::AllSources(), 1443 content::NotificationService::AllSources(),
1441 content::NotificationService::NoDetails()); 1444 content::NotificationService::NoDetails());
1442 } 1445 }
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 if (!cros_settings) 1849 if (!cros_settings)
1847 return false; 1850 return false;
1848 1851
1849 // Offline login is allowed only when user pods are hidden. 1852 // Offline login is allowed only when user pods are hidden.
1850 bool show_pods; 1853 bool show_pods;
1851 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); 1854 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods);
1852 return !show_pods; 1855 return !show_pods;
1853 } 1856 }
1854 1857
1855 } // namespace chromeos 1858 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698