| OLD | NEW |
| 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_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 5 #ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // signin is completed. | 188 // signin is completed. |
| 189 void UntrustedSigninConfirmed(StartSyncMode response); | 189 void UntrustedSigninConfirmed(StartSyncMode response); |
| 190 | 190 |
| 191 // GetProfileSyncService returns non-NULL pointer if sync is enabled. | 191 // GetProfileSyncService returns non-NULL pointer if sync is enabled. |
| 192 // There is a scenario when when ProfileSyncService discovers that sync is | 192 // There is a scenario when when ProfileSyncService discovers that sync is |
| 193 // disabled during setup. In this case GetProfileSyncService will return NULL, | 193 // disabled during setup. In this case GetProfileSyncService will return NULL, |
| 194 // but we still need to call PSS::SetSetupInProgress(false). For this purpose | 194 // but we still need to call PSS::SetSetupInProgress(false). For this purpose |
| 195 // call FinishProfileSyncServiceSetup() function. | 195 // call FinishProfileSyncServiceSetup() function. |
| 196 ProfileSyncService* GetProfileSyncService(); | 196 ProfileSyncService* GetProfileSyncService(); |
| 197 | 197 |
| 198 void StartSync(); |
| 199 |
| 198 void FinishProfileSyncServiceSetup(); | 200 void FinishProfileSyncServiceSetup(); |
| 199 | 201 |
| 200 // Displays the settings UI and brings up the advanced sync settings | 202 // Displays the settings UI and brings up the advanced sync settings |
| 201 // dialog if |configure_sync| is true. The web contents provided to the | 203 // dialog if |configure_sync| is true. The web contents provided to the |
| 202 // constructor is used if it's showing a blank page and not about to be | 204 // constructor is used if it's showing a blank page and not about to be |
| 203 // closed. Otherwise, a new tab or an existing settings tab is used. | 205 // closed. Otherwise, a new tab or an existing settings tab is used. |
| 204 void ShowSettingsPage(bool configure_sync); | 206 void ShowSettingsPage(bool configure_sync); |
| 205 | 207 |
| 206 // Displays a settings page in the provided web contents. |sub_page| can be | 208 // Displays a settings page in the provided web contents. |sub_page| can be |
| 207 // empty to show the main settings page. | 209 // empty to show the main settings page. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 233 std::string dm_token_; | 235 std::string dm_token_; |
| 234 std::string client_id_; | 236 std::string client_id_; |
| 235 | 237 |
| 236 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; | 238 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; |
| 237 | 239 |
| 238 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); | 240 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); |
| 239 }; | 241 }; |
| 240 | 242 |
| 241 | 243 |
| 242 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 244 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| OLD | NEW |