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. |