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

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: Merge 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..12ef8fa13fe7a2d1db73687a5169ec18f72ab722 100644
--- a/chrome/browser/chromeos/login/login_display.h
+++ b/chrome/browser/chromeos/login/login_display.h
@@ -11,22 +11,14 @@
#include "base/string16.h"
#include "chrome/browser/chromeos/login/help_app_launcher.h"
+#include "chrome/browser/chromeos/login/remove_user_delegate.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,13 +34,17 @@ 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 with |CompleteLogin|.
+ // 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,
const std::string& password) = 0;
// Sign in using |username| and |password| specified.
- // Used for both known and new users.
+ // Used for both known users only.
virtual void Login(const std::string& username,
const std::string& password) = 0;
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.cc ('k') | chrome/browser/chromeos/login/login_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698