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

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

Issue 446383002: Make UserSelectionScreen::users_ private (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
« no previous file with comments | « chrome/browser/chromeos/login/screens/chrome_user_selection_screen.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ScreenlockBridge::LockHandler::AuthType auth_type, 58 ScreenlockBridge::LockHandler::AuthType auth_type,
59 const std::vector<std::string>* public_session_recommended_locales, 59 const std::vector<std::string>* public_session_recommended_locales,
60 base::DictionaryValue* user_dict); 60 base::DictionaryValue* user_dict);
61 61
62 // Determines if user auth status requires online sign in. 62 // Determines if user auth status requires online sign in.
63 static bool ShouldForceOnlineSignIn(const user_manager::User* user); 63 static bool ShouldForceOnlineSignIn(const user_manager::User* user);
64 64
65 protected: 65 protected:
66 LoginDisplayWebUIHandler* handler_; 66 LoginDisplayWebUIHandler* handler_;
67 67
68 // Set of Users that are visible.
69 user_manager::UserList users_;
70
71 // Map from public session user IDs to recommended locales set by policy. 68 // Map from public session user IDs to recommended locales set by policy.
72 typedef std::map<std::string, std::vector<std::string> > 69 typedef std::map<std::string, std::vector<std::string> >
73 PublicSessionRecommendedLocaleMap; 70 PublicSessionRecommendedLocaleMap;
74 PublicSessionRecommendedLocaleMap public_session_recommended_locales_; 71 PublicSessionRecommendedLocaleMap public_session_recommended_locales_;
75 72
76 private: 73 private:
77 // Whether to show guest login. 74 // Whether to show guest login.
78 bool show_guest_; 75 bool show_guest_;
79 76
77 // Set of Users that are visible.
78 user_manager::UserList users_;
79
80 // Map of usernames to their current authentication type. If a user is not 80 // Map of usernames to their current authentication type. If a user is not
81 // contained in the map, it is using the default authentication type. 81 // contained in the map, it is using the default authentication type.
82 std::map<std::string, ScreenlockBridge::LockHandler::AuthType> 82 std::map<std::string, ScreenlockBridge::LockHandler::AuthType>
83 user_auth_type_map_; 83 user_auth_type_map_;
84 84
85 // Timer for measuring idle state duration before password clear. 85 // Timer for measuring idle state duration before password clear.
86 base::OneShotTimer<UserSelectionScreen> password_clear_timer_; 86 base::OneShotTimer<UserSelectionScreen> password_clear_timer_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen); 88 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen);
89 }; 89 };
90 90
91 } // namespace chromeos 91 } // namespace chromeos
92 92
93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ 93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/chrome_user_selection_screen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698