Index: chrome/browser/ui/sync/one_click_signin_helper.h |
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.h b/chrome/browser/ui/sync/one_click_signin_helper.h |
index ea12c89003c7a6837dbd03710692eb529d755084..92e281bdb6e6a059e8798b0937463983d48488ef 100644 |
--- a/chrome/browser/ui/sync/one_click_signin_helper.h |
+++ b/chrome/browser/ui/sync/one_click_signin_helper.h |
@@ -219,6 +219,9 @@ class OneClickSigninHelper |
// TestingProfile provides. |
void SetDoNotClearPendingEmailForTesting(); |
+ // In unit tests, disable starting the actual sync. |
+ void set_do_not_start_sync_for_testing(); |
+ |
// Called when password has been submitted. |
void PasswordSubmitted(const autofill::PasswordForm& form); |
@@ -276,6 +279,9 @@ class OneClickSigninHelper |
// pending e-mail. |
bool do_not_clear_pending_email_; |
+ // Allows unittest to avoid starting sync for real. |
+ bool do_not_start_sync_for_testing_; |
+ |
base::WeakPtrFactory<OneClickSigninHelper> weak_pointer_factory_; |
DISALLOW_COPY_AND_ASSIGN(OneClickSigninHelper); |