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

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

Issue 8773046: [cros] Display emails of users are stored in a separate dictionary in Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years 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/login_display.h
diff --git a/chrome/browser/chromeos/login/login_display.h b/chrome/browser/chromeos/login/login_display.h
index a3c77830276a741728c244406052e705a6fbe745..551e9c565162bbd36eff041a0c71f79dfb2b63bf 100644
--- a/chrome/browser/chromeos/login/login_display.h
+++ b/chrome/browser/chromeos/login/login_display.h
@@ -12,21 +12,12 @@
#include "base/string16.h"
#include "chrome/browser/chromeos/login/help_app_launcher.h"
#include "chrome/browser/chromeos/login/user.h"
+#include "chrome/browser/chromeos/login/user_manager.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/rect.h"
namespace chromeos {
-// Delegate to be used while user removing.
-class RemoveUserDelegate {
- public:
- // Called right before actual user removal process is initiated.
- virtual void OnBeforeUserRemoved(const std::string& username) = 0;
-
- // Called right after user removal process has been initiated.
- virtual void OnUserRemoved(const std::string& username) = 0;
-};
-
// TODO(nkostylev): Extract interface, create a BaseLoginDisplay class.
// An abstract class that defines login UI implementation.
class LoginDisplay : public RemoveUserDelegate {
@@ -42,6 +33,10 @@ class LoginDisplay : public RemoveUserDelegate {
// Users decides to sign in into captive portal.
virtual void FixCaptivePortal() = 0;
+ // Sets the displayed email for the next login attempt. If it succeeds,
+ // user's displayed email value will be updated to |email|.
+ virtual void SetDisplayEmail(const std::string& email) = 0;
+
// Complete sign process with specified |username| and |password|.
// Used for new users authenticated through an extension.
virtual void CompleteLogin(const std::string& username,

Powered by Google App Engine
This is Rietveld 408576698