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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.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/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java b/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java
index 3de971de62c773b04c69ef0c810cf34bb828067e..0a48a7c98fe6627dd9d9079ff14a31f6b4698664 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java
@@ -78,7 +78,7 @@ public class ProfileDownloader {
ThreadUtils.assertOnUiThread();
if (sPendingProfileDownloads == null) {
sPendingProfileDownloads = new PendingProfileDownloads();
- AccountTrackerService.get(context).addSystemAccountsSeededListener(
+ AccountTrackerService.get().addSystemAccountsSeededListener(
sPendingProfileDownloads);
}
return sPendingProfileDownloads;
@@ -123,7 +123,7 @@ public class ProfileDownloader {
public static void startFetchingAccountInfoFor(Context context, Profile profile,
String accountId, int imageSidePixels, boolean isPreSignin) {
ThreadUtils.assertOnUiThread();
- if (!AccountTrackerService.get(context).checkAndSeedSystemAccounts()) {
+ if (!AccountTrackerService.get().checkAndSeedSystemAccounts()) {
PendingProfileDownloads.get(context).pendProfileDownload(
profile, accountId, imageSidePixels);
return;

Powered by Google App Engine
This is Rietveld 408576698