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

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: split out 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 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 1378
1379 is_account_picker_showing_first_time_ = true; 1379 is_account_picker_showing_first_time_ = true;
1380 MaybePreloadAuthExtension(); 1380 MaybePreloadAuthExtension();
1381 1381
1382 if (ScreenLocker::default_screen_locker()) { 1382 if (ScreenLocker::default_screen_locker()) {
1383 content::NotificationService::current()->Notify( 1383 content::NotificationService::current()->Notify(
1384 chrome::NOTIFICATION_LOCK_WEBUI_READY, 1384 chrome::NOTIFICATION_LOCK_WEBUI_READY,
1385 content::NotificationService::AllSources(), 1385 content::NotificationService::AllSources(),
1386 content::NotificationService::NoDetails()); 1386 content::NotificationService::NoDetails());
1387 } 1387 }
1388
1389 if (delegate_)
1390 delegate_->OnSigninScreenReady();
1388 } 1391 }
1389 1392
1390 void SigninScreenHandler::HandleWallpaperReady( 1393 void SigninScreenHandler::HandleWallpaperReady(
1391 const base::ListValue* args) { 1394 const base::ListValue* args) {
1392 if (ScreenLocker::default_screen_locker()) { 1395 if (ScreenLocker::default_screen_locker()) {
1393 content::NotificationService::current()->Notify( 1396 content::NotificationService::current()->Notify(
1394 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, 1397 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED,
1395 content::NotificationService::AllSources(), 1398 content::NotificationService::AllSources(),
1396 content::NotificationService::NoDetails()); 1399 content::NotificationService::NoDetails());
1397 } 1400 }
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1757 if (!cros_settings) 1760 if (!cros_settings)
1758 return false; 1761 return false;
1759 1762
1760 // Offline login is allowed only when user pods are hidden. 1763 // Offline login is allowed only when user pods are hidden.
1761 bool show_pods; 1764 bool show_pods;
1762 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); 1765 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods);
1763 return !show_pods; 1766 return !show_pods;
1764 } 1767 }
1765 1768
1766 } // namespace chromeos 1769 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698