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

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

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
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 "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/browser_process_platform_part.h" 13 #include "chrome/browser/browser_process_platform_part.h"
14 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" 14 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h"
15 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" 15 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h"
16 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h" 16 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h"
17 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 17 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
18 #include "chrome/browser/signin/screenlock_bridge.h" 18 #include "chrome/browser/signin/screenlock_bridge.h"
19 #include "chrome/browser/ui/webui/chromeos/login/l10n_util.h" 19 #include "chrome/browser/ui/webui/chromeos/login/l10n_util.h"
20 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" 20 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
21 #include "chrome/common/pref_names.h"
22 #include "components/user_manager/user_manager.h" 21 #include "components/user_manager/user_manager.h"
23 #include "components/user_manager/user_type.h" 22 #include "components/user_manager/user_type.h"
24 #include "ui/wm/core/user_activity_detector.h" 23 #include "ui/wm/core/user_activity_detector.h"
25 24
26 namespace chromeos { 25 namespace chromeos {
27 26
28 namespace { 27 namespace {
29 28
30 // User dictionary keys. 29 // User dictionary keys.
31 const char kKeyUsername[] = "username"; 30 const char kKeyUsername[] = "username";
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } 376 }
378 377
379 ScreenlockBridge::LockHandler::AuthType UserSelectionScreen::GetAuthType( 378 ScreenlockBridge::LockHandler::AuthType UserSelectionScreen::GetAuthType(
380 const std::string& username) const { 379 const std::string& username) const {
381 if (user_auth_type_map_.find(username) == user_auth_type_map_.end()) 380 if (user_auth_type_map_.find(username) == user_auth_type_map_.end())
382 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; 381 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD;
383 return user_auth_type_map_.find(username)->second; 382 return user_auth_type_map_.find(username)->second;
384 } 383 }
385 384
386 } // namespace chromeos 385 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/signin/auth_sync_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698