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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.h

Issue 2685793004: Chromad: Wire up displayName and givenName (Closed)
Patch Set: Combine SetDisplayName and SetGivenName into SetDisplayAndGiveName 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..ab77a45626fea18d2a5f9680234306825baa24d1 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 SetDisplayAndGivenName(const std::string& display_name,
+ 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 ClearRecordedNames();
+
// Public session auto-login timer.
std::unique_ptr<base::OneShotTimer> auto_login_timer_;
@@ -309,6 +315,13 @@ 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
+ // |SetDisplayAndGivenName|.
+ base::string16 display_name_;
+
+ // The given name for the next login attempt set by |SetDisplayAndGivenName|.
+ base::string16 given_name_;
+
// Whether login attempt is running.
bool is_login_in_progress_ = false;
« no previous file with comments | « chrome/browser/chromeos/login/app_launch_signin_screen.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698