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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java

Issue 2800833003: 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/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 0a48a7c98fe6627dd9d9079ff14a31f6b4698664..3de971de62c773b04c69ef0c810cf34bb828067e 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 @@
ThreadUtils.assertOnUiThread();
if (sPendingProfileDownloads == null) {
sPendingProfileDownloads = new PendingProfileDownloads();
- AccountTrackerService.get().addSystemAccountsSeededListener(
+ AccountTrackerService.get(context).addSystemAccountsSeededListener(
sPendingProfileDownloads);
}
return sPendingProfileDownloads;
@@ -123,7 +123,7 @@
public static void startFetchingAccountInfoFor(Context context, Profile profile,
String accountId, int imageSidePixels, boolean isPreSignin) {
ThreadUtils.assertOnUiThread();
- if (!AccountTrackerService.get().checkAndSeedSystemAccounts()) {
+ if (!AccountTrackerService.get(context).checkAndSeedSystemAccounts()) {
PendingProfileDownloads.get(context).pendProfileDownload(
profile, accountId, imageSidePixels);
return;

Powered by Google App Engine
This is Rietveld 408576698