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

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

Issue 2513943002: [Misc] Relax getDownloadManagerService. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java
index 7d1c7e654939558df1c171fb554dd530cd7e3f99..29dcbd79373b0c5c536c275e25f0944ddf72944c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java
@@ -207,9 +207,9 @@ public class DownloadManagerService extends BroadcastReceiver implements
* Creates DownloadManagerService.
*/
@SuppressFBWarnings("LI_LAZY_INIT") // Findbugs doesn't see this is only UI thread.
- public static DownloadManagerService getDownloadManagerService(final Context context) {
+ public static DownloadManagerService getDownloadManagerService(Context context) {
ThreadUtils.assertOnUiThread();
- assert context == context.getApplicationContext();
+ context = context.getApplicationContext();
if (sDownloadManagerService == null) {
sDownloadManagerService = new DownloadManagerService(context,
new SystemDownloadNotifier(context), new Handler(), UPDATE_DELAY_MILLIS);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698