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

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

Issue 435423005: Implement the inline signin confirmation bubble and mirror upgrade tutorial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits fixed 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 99dc03c711d93e4b36454dbf7be7e97a7c784b70..0e52d09b6b22c9b33aa684764d4648c541269926 100644
--- a/chrome/browser/ui/webui/signin/login_ui_service.h
+++ b/chrome/browser/ui/webui/signin/login_ui_service.h
@@ -12,8 +12,8 @@
class Browser;
class Profile;
-// The LoginUIService helps track per-profile information for the login UI -
-// for example, whether there is login UI currently on-screen.
+// The LoginUIService helps track per-profile information for the login related
+// UIs - for example, whether there is login UI currently on-screen.
class LoginUIService : public KeyedService {
public:
// Various UI components implement this API to allow LoginUIService to
@@ -35,11 +35,16 @@ class LoginUIService : public KeyedService {
public:
// Called when a new login UI is shown.
// |ui| The login UI that was just shown. Will never be null.
- virtual void OnLoginUIShown(LoginUI* ui) = 0;
+ virtual void OnLoginUIShown(LoginUI* ui) {}
// Called when a login UI is closed.
// |ui| The login UI that was just closed; will never be null.
- virtual void OnLoginUIClosed(LoginUI* ui) = 0;
+ virtual void OnLoginUIClosed(LoginUI* ui) {}
+
+ // Called when the sync confirmation UI is closed. |configure_sync_first|
+ // is true if the user has requested to configure the sync settings before
+ // sync starts.
+ virtual void OnSyncConfirmationUIClosed(bool configure_sync_first) {}
protected:
virtual ~Observer() {}
@@ -65,6 +70,9 @@ class LoginUIService : public KeyedService {
// sets current_login_ui() to null.
void LoginUIClosed(LoginUI* ui);
+ // Called when the sync settings confirmation UI is closed.
+ void SyncConfirmationUIClosed(bool configure_sync_first);
+
// Delegate to an existing login dialog if one exists.
// If not, we make a new popup dialog window, and set it to
// chrome://signin to ask the user to sign in to chrome.
« 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