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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java

Issue 2772343003: Android: Remove GetApplicationContext part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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/download/DownloadNotificationService.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
index 91208d9774d8c44e8b3d39343b4be85c3543d6bf..976638eb4059777a1a854e0a9f235dad95b8ce00 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
@@ -1204,12 +1204,12 @@ public class DownloadNotificationService extends Service {
return OfflinePageDownloadBridge.getDownloadServiceDelegate();
}
if (LegacyHelpers.isLegacyDownload(id)) {
- return DownloadManagerService.getDownloadManagerService(getApplicationContext());
+ return DownloadManagerService.getDownloadManagerService();
}
Log.e(TAG, "Unrecognized download type.", id);
// Return the DownloadManagerService if we can't detect the type.
- return DownloadManagerService.getDownloadManagerService(getApplicationContext());
+ return DownloadManagerService.getDownloadManagerService();
}
@VisibleForTesting

Powered by Google App Engine
This is Rietveld 408576698