Index: chrome/android/junit/src/org/chromium/chrome/browser/invalidation/InvalidationControllerTest.java |
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/invalidation/InvalidationControllerTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/invalidation/InvalidationControllerTest.java |
index 373c000f25426b18a2e5fcde78b28be4c92798e3..b1bf658644b556bc8a9f3689d544b6bab25925bd 100644 |
--- a/chrome/android/junit/src/org/chromium/chrome/browser/invalidation/InvalidationControllerTest.java |
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/invalidation/InvalidationControllerTest.java |
@@ -19,11 +19,11 @@ import org.chromium.base.CollectionUtil; |
import org.chromium.base.ContextUtils; |
import org.chromium.base.test.util.Feature; |
import org.chromium.chrome.browser.sync.ProfileSyncService; |
+import org.chromium.components.signin.ChromeSigninController; |
import org.chromium.components.sync.AndroidSyncSettings; |
import org.chromium.components.sync.ModelType; |
import org.chromium.components.sync.ModelTypeHelper; |
import org.chromium.components.sync.notifier.InvalidationIntentProtocol; |
-import org.chromium.components.sync.signin.ChromeSigninController; |
import org.chromium.components.sync.test.util.MockSyncContentResolverDelegate; |
import org.chromium.testing.local.CustomShadowAsyncTask; |
import org.chromium.testing.local.LocalRobolectricTestRunner; |
@@ -134,6 +134,8 @@ public class InvalidationControllerTest { |
AndroidSyncSettings.overrideForTests(mContext, delegate); |
ChromeSigninController.get(mContext).setSignedInAccountName("test@example.com"); |
+ AndroidSyncSettings.updateAccount( |
+ mContext, ChromeSigninController.get(mContext).getSignedInUser()); |
AndroidSyncSettings.enableChromeSync(mContext); |
} |