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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/existing_user_controller.h
diff --git a/chrome/browser/chromeos/login/existing_user_controller.h b/chrome/browser/chromeos/login/existing_user_controller.h
index 437d14231695e0a9be48483fc11d6dbcc70f0568..cd478aae2e4caaad33188d5e925143b63ad3eeaa 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.h
+++ b/chrome/browser/chromeos/login/existing_user_controller.h
@@ -98,6 +98,8 @@ class ExistingUserController
void ResetAutoLoginTimer() override;
void ResyncUserData() override;
void SetDisplayEmail(const std::string& email) override;
+ void SetDisplayName(const std::string& display_name) override;
+ void SetGivenName(const std::string& given_name) override;
void ShowWrongHWIDScreen() override;
void Signout() override;
bool IsUserWhitelisted(const AccountId& account_id) override;
@@ -261,6 +263,10 @@ class ExistingUserController
const AccountId&,
TokenHandleUtil::TokenHandleStatus token_handle_status);
+ // Clear the recorded displayed email, displayed name, given name so it won't
+ // affect any future attempts.
+ void ClearRecoredNames();
xiyuan 2017/02/08 22:59:57 ClearRecoredNames -> ClearRecor*d*edNames
Roman Sorokin (ftl) 2017/02/09 10:50:47 Oops. Done!
+
// Public session auto-login timer.
std::unique_ptr<base::OneShotTimer> auto_login_timer_;
@@ -309,6 +315,12 @@ class ExistingUserController
// The displayed email for the next login attempt set by |SetDisplayEmail|.
std::string display_email_;
+ // The displayed name for the next login attempt set by |SetDisplayName|.
+ base::string16 display_name_;
+
+ // The given name for the next login attempt set by |SetGivenName|.
+ base::string16 given_name_;
+
// Whether login attempt is running.
bool is_login_in_progress_ = false;

Powered by Google App Engine
This is Rietveld 408576698