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

Unified Diff: chrome/browser/ui/webui/signin/login_ui_service.h

Issue 485073002: Migrate signin error messages to the new avatar bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed cros error Created 6 years, 4 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/ui/webui/signin/login_ui_service.h
diff --git a/chrome/browser/ui/webui/signin/login_ui_service.h b/chrome/browser/ui/webui/signin/login_ui_service.h
index 0e52d09b6b22c9b33aa684764d4648c541269926..709495f705fe80629ded95dc1b50eab4efb27fbc 100644
--- a/chrome/browser/ui/webui/signin/login_ui_service.h
+++ b/chrome/browser/ui/webui/signin/login_ui_service.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/observer_list.h"
+#include "base/strings/string16.h"
#include "components/keyed_service/core/keyed_service.h"
class Browser;
@@ -78,6 +79,12 @@ class LoginUIService : public KeyedService {
// chrome://signin to ask the user to sign in to chrome.
void ShowLoginPopup();
+ // Displays login results.
+ void DisplayLoginResult(Browser* browser, const base::string16& message);
+
+ // Gets the last login result set through |DisplayLoginResult|.
+ const base::string16& GetLastLoginResult();
+
private:
// Weak pointer to the currently active login UI, or null if none.
LoginUI* ui_;
@@ -86,6 +93,8 @@ class LoginUIService : public KeyedService {
// List of observers.
ObserverList<Observer> observer_list_;
+ base::string16 last_login_result_;
+
DISALLOW_COPY_AND_ASSIGN(LoginUIService);
};
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | chrome/browser/ui/webui/signin/login_ui_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698