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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 1183893005: ChromeOS: user whitelist check should happen before entering password. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/existing_user_controller.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index 9866456dd4e0d92c43499d2566ea2e3edf68635e..f2b8e07bfd9f08d71683578bbafac50bf33268eb 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -452,6 +452,14 @@ void ExistingUserController::Signout() {
NOTREACHED();
}
+bool ExistingUserController::IsUserWhitelisted(const std::string& user_id) {
+ bool wildcard_match = false;
+ if (login_performer_.get())
+ return login_performer_->IsUserWhitelisted(user_id, &wildcard_match);
+
+ return ChromeLoginPerformer(this).IsUserWhitelisted(user_id, &wildcard_match);
Denis Kuznetsov (DE-MUC) 2015/06/18 11:13:31 What is the case when we will not have login_perfo
Alexander Alekseev 2015/06/19 00:54:08 login_performer is created only in PerformLogin(),
Denis Kuznetsov (DE-MUC) 2015/06/25 19:21:11 First, ChromeLoginPerfomer is somewhat large objec
Alexander Alekseev 2015/07/11 01:02:05 components/ cannot include chrome/ . But the check
+}
+
void ExistingUserController::OnConsumerKioskAutoLaunchCheckCompleted(
KioskAppManager::ConsumerKioskAutoLaunchStatus status) {
if (status == KioskAppManager::CONSUMER_KIOSK_AUTO_LAUNCH_CONFIGURABLE)

Powered by Google App Engine
This is Rietveld 408576698