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

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

Issue 2811383002: cros: Refactor oobe LoadUsers to include non-serialized user list. (Closed)
Patch Set: Initial upload Created 3 years, 7 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
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_CHROME_USER_SELECTION_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" 15 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h"
16 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" 16 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
17 17
18 class AccountId; 18 class AccountId;
19 19
20 namespace chromeos { 20 namespace chromeos {
21 21
22 class ChromeUserSelectionScreen 22 class ChromeUserSelectionScreen
23 : public UserSelectionScreen, 23 : public UserSelectionScreen,
24 public policy::DeviceLocalAccountPolicyService::Observer { 24 public policy::DeviceLocalAccountPolicyService::Observer {
25 public: 25 public:
26 explicit ChromeUserSelectionScreen(const std::string& display_type); 26 explicit ChromeUserSelectionScreen(const std::string& display_type);
27 ~ChromeUserSelectionScreen() override; 27 ~ChromeUserSelectionScreen() override;
28 28
29 // UserSelectionScreen: 29 // UserSelectionScreen:
30 void Init(const user_manager::UserList& users, bool show_guest) override; 30 void Init(const user_manager::UserList& users) override;
31 void SendUserList() override; 31 void SendUserList() override;
32 32
33 // policy::DeviceLocalAccountPolicyService::Observer: 33 // policy::DeviceLocalAccountPolicyService::Observer:
34 void OnPolicyUpdated(const std::string& user_id) override; 34 void OnPolicyUpdated(const std::string& user_id) override;
35 void OnDeviceLocalAccountsChanged() override; 35 void OnDeviceLocalAccountsChanged() override;
36 36
37 private: 37 private:
38 // Check whether the display name set by policy for a public session has 38 // Check whether the display name set by policy for a public session has
39 // changed and if so, notify the UI. 39 // changed and if so, notify the UI.
40 void CheckForPublicSessionDisplayNameChange( 40 void CheckForPublicSessionDisplayNameChange(
(...skipping 23 matching lines...) Expand all
64 DisplayNamesMap public_session_display_names_; 64 DisplayNamesMap public_session_display_names_;
65 65
66 base::WeakPtrFactory<ChromeUserSelectionScreen> weak_factory_; 66 base::WeakPtrFactory<ChromeUserSelectionScreen> weak_factory_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ChromeUserSelectionScreen); 68 DISALLOW_COPY_AND_ASSIGN(ChromeUserSelectionScreen);
69 }; 69 };
70 70
71 } // namespace chromeos 71 } // namespace chromeos
72 72
73 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_ 73 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698