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

Side by Side Diff: chrome/browser/chromeos/login/ui/login_display.h

Issue 2685793004: Chromad: Wire up displayName and givenName (Closed)
Patch Set: Created 3 years, 10 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_UI_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // Called when the owner permission for kiosk app auto launch is requested. 81 // Called when the owner permission for kiosk app auto launch is requested.
82 virtual void OnStartKioskAutolaunchScreen() = 0; 82 virtual void OnStartKioskAutolaunchScreen() = 0;
83 83
84 // Shows wrong HWID screen. 84 // Shows wrong HWID screen.
85 virtual void ShowWrongHWIDScreen() = 0; 85 virtual void ShowWrongHWIDScreen() = 0;
86 86
87 // Sets the displayed email for the next login attempt with |CompleteLogin|. 87 // Sets the displayed email for the next login attempt with |CompleteLogin|.
88 // If it succeeds, user's displayed email value will be updated to |email|. 88 // If it succeeds, user's displayed email value will be updated to |email|.
89 virtual void SetDisplayEmail(const std::string& email) = 0; 89 virtual void SetDisplayEmail(const std::string& email) = 0;
90 virtual void SetDisplayName(const std::string& display_name) = 0;
91 virtual void SetGivenName(const std::string& given_name) = 0;
xiyuan 2017/02/08 22:59:57 Do we ever need to set the two names separately? M
Roman Sorokin (ftl) 2017/02/09 10:50:47 Done.
90 92
91 // Returns name of the currently connected network, for error message, 93 // Returns name of the currently connected network, for error message,
92 virtual base::string16 GetConnectedNetworkName() = 0; 94 virtual base::string16 GetConnectedNetworkName() = 0;
93 95
94 // Restarts the auto-login timer if it is running. 96 // Restarts the auto-login timer if it is running.
95 virtual void ResetAutoLoginTimer() = 0; 97 virtual void ResetAutoLoginTimer() = 0;
96 98
97 // Returns true if user is allowed to log in by domain policy. 99 // Returns true if user is allowed to log in by domain policy.
98 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0; 100 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0;
99 101
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // in redesigned login stack. 180 // in redesigned login stack.
179 // Login stack (and this object) will be recreated for next user sign in. 181 // Login stack (and this object) will be recreated for next user sign in.
180 bool is_signin_completed_; 182 bool is_signin_completed_;
181 183
182 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); 184 DISALLOW_COPY_AND_ASSIGN(LoginDisplay);
183 }; 185 };
184 186
185 } // namespace chromeos 187 } // namespace chromeos
186 188
187 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ 189 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698