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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/string16.h"
10 #include "components/keyed_service/core/keyed_service.h" 11 #include "components/keyed_service/core/keyed_service.h"
11 12
12 class Browser; 13 class Browser;
13 class Profile; 14 class Profile;
14 15
15 // The LoginUIService helps track per-profile information for the login related 16 // The LoginUIService helps track per-profile information for the login related
16 // UIs - for example, whether there is login UI currently on-screen. 17 // UIs - for example, whether there is login UI currently on-screen.
17 class LoginUIService : public KeyedService { 18 class LoginUIService : public KeyedService {
18 public: 19 public:
19 // Various UI components implement this API to allow LoginUIService to 20 // Various UI components implement this API to allow LoginUIService to
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void LoginUIClosed(LoginUI* ui); 72 void LoginUIClosed(LoginUI* ui);
72 73
73 // Called when the sync settings confirmation UI is closed. 74 // Called when the sync settings confirmation UI is closed.
74 void SyncConfirmationUIClosed(bool configure_sync_first); 75 void SyncConfirmationUIClosed(bool configure_sync_first);
75 76
76 // Delegate to an existing login dialog if one exists. 77 // Delegate to an existing login dialog if one exists.
77 // If not, we make a new popup dialog window, and set it to 78 // If not, we make a new popup dialog window, and set it to
78 // chrome://signin to ask the user to sign in to chrome. 79 // chrome://signin to ask the user to sign in to chrome.
79 void ShowLoginPopup(); 80 void ShowLoginPopup();
80 81
82 // Displays login results.
83 void DisplayLoginResult(Browser* browser, const base::string16& message);
84
85 // Gets the last login result set through |DisplayLoginResult|.
86 const base::string16& GetLastLoginResult();
87
81 private: 88 private:
82 // Weak pointer to the currently active login UI, or null if none. 89 // Weak pointer to the currently active login UI, or null if none.
83 LoginUI* ui_; 90 LoginUI* ui_;
84 Profile* profile_; 91 Profile* profile_;
85 92
86 // List of observers. 93 // List of observers.
87 ObserverList<Observer> observer_list_; 94 ObserverList<Observer> observer_list_;
88 95
96 base::string16 last_login_result_;
97
89 DISALLOW_COPY_AND_ASSIGN(LoginUIService); 98 DISALLOW_COPY_AND_ASSIGN(LoginUIService);
90 }; 99 };
91 100
92 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 101 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
OLDNEW
« 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