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

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

Issue 2801033002: Revert of Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: 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 88534f0fb725a328c3e9a232f2edc1bc00583672..984476544181df188a5fbc134626f4246deb1702 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,8 +134,9 @@
delegate.setMasterSyncAutomatically(true);
AndroidSyncSettings.overrideForTests(mContext, delegate);
- ChromeSigninController.get().setSignedInAccountName("test@example.com");
- AndroidSyncSettings.updateAccount(mContext, ChromeSigninController.get().getSignedInUser());
+ ChromeSigninController.get(mContext).setSignedInAccountName("test@example.com");
+ AndroidSyncSettings.updateAccount(
+ mContext, ChromeSigninController.get(mContext).getSignedInUser());
AndroidSyncSettings.enableChromeSync(mContext);
}

Powered by Google App Engine
This is Rietveld 408576698