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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/invalidation/InvalidationControllerTest.java

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests Created 3 years, 8 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/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 984476544181df188a5fbc134626f4246deb1702..88534f0fb725a328c3e9a232f2edc1bc00583672 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
@@ -134,9 +134,8 @@ public class InvalidationControllerTest {
delegate.setMasterSyncAutomatically(true);
AndroidSyncSettings.overrideForTests(mContext, delegate);
- ChromeSigninController.get(mContext).setSignedInAccountName("test@example.com");
- AndroidSyncSettings.updateAccount(
- mContext, ChromeSigninController.get(mContext).getSignedInUser());
+ ChromeSigninController.get().setSignedInAccountName("test@example.com");
+ AndroidSyncSettings.updateAccount(mContext, ChromeSigninController.get().getSignedInUser());
AndroidSyncSettings.enableChromeSync(mContext);
}

Powered by Google App Engine
This is Rietveld 408576698