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

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

Issue 2842163005: Download Notifications : Fixed a crash (Closed)
Patch Set: Fixed a crash 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
« 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 5fe243de8451248152d94ddd447f5252d6e62ca3..8836abaca0d2b5246abc1ec587d1bf103ba6fadb 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
@@ -1119,9 +1119,9 @@ public class DownloadManagerService extends BroadcastReceiver implements
@Override
protected void onPostExecute(Intent intent) {
- if (intent == null
- || !ExternalNavigationDelegateImpl.resolveIntent(intent, true)
- || !DownloadUtils.fireOpenIntentForDownload(context, intent)) {
+ if (intent == null || !ExternalNavigationDelegateImpl.resolveIntent(intent, true)
+ || !DownloadUtils.fireOpenIntentForDownload(context, intent)
+ || !hasDownloadManagerService()) {
openDownloadsPage(context);
} else {
DownloadManagerService service =
« 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