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

Side by Side Diff: chrome/browser/chromeos/login/screens/user_selection_screen.cc

Issue 456943003: Easy Unlock: Add support for hard locking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/login/screens/user_selection_screen.h" 5 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 handler_->LoadUsers(users_list, show_guest_); 354 handler_->LoadUsers(users_list, show_guest_);
355 } 355 }
356 356
357 void UserSelectionScreen::HandleGetUsers() { 357 void UserSelectionScreen::HandleGetUsers() {
358 SendUserList(); 358 SendUserList();
359 } 359 }
360 360
361 void UserSelectionScreen::SetAuthType( 361 void UserSelectionScreen::SetAuthType(
362 const std::string& username, 362 const std::string& username,
363 ScreenlockBridge::LockHandler::AuthType auth_type) { 363 ScreenlockBridge::LockHandler::AuthType auth_type) {
364 DCHECK(GetAuthType(username) !=
365 ScreenlockBridge::LockHandler::FORCE_OFFLINE_PASSWORD ||
366 auth_type == ScreenlockBridge::LockHandler::FORCE_OFFLINE_PASSWORD);
364 user_auth_type_map_[username] = auth_type; 367 user_auth_type_map_[username] = auth_type;
365 } 368 }
366 369
367 ScreenlockBridge::LockHandler::AuthType UserSelectionScreen::GetAuthType( 370 ScreenlockBridge::LockHandler::AuthType UserSelectionScreen::GetAuthType(
368 const std::string& username) const { 371 const std::string& username) const {
369 if (user_auth_type_map_.find(username) == user_auth_type_map_.end()) 372 if (user_auth_type_map_.find(username) == user_auth_type_map_.end())
370 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; 373 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD;
371 return user_auth_type_map_.find(username)->second; 374 return user_auth_type_map_.find(username)->second;
372 } 375 }
373 376
374 } // namespace chromeos 377 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698