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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageNotificationBridge.java

Issue 2698593002: (Android) Blocking multiple scheduled downloads for the same URL (Closed)
Patch Set: Patch Created 3 years, 10 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/offlinepages/downloads/OfflinePageNotificationBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageNotificationBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageNotificationBridge.java
index 08fe717dcf4eebe028ba1965eec77e213f6a5d05..ca4fc6c35f84703268ba7d986dedf88dc67c1ef7 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageNotificationBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageNotificationBridge.java
@@ -7,11 +7,10 @@ package org.chromium.chrome.browser.offlinepages.downloads;
import android.content.Context;
import org.chromium.base.annotations.CalledByNative;
-import org.chromium.chrome.R;
import org.chromium.chrome.browser.download.DownloadInfo;
import org.chromium.chrome.browser.download.DownloadManagerService;
import org.chromium.chrome.browser.download.DownloadNotifier;
-import org.chromium.ui.widget.Toast;
+import org.chromium.chrome.browser.download.DownloadUtils;
/**
* Class for dispatching offline page/request related notifications to the
@@ -149,7 +148,7 @@ public class OfflinePageNotificationBridge {
*/
@CalledByNative
public static void showDownloadingToast(Context context) {
- Toast.makeText(context, R.string.download_started, Toast.LENGTH_SHORT).show();
+ DownloadUtils.showDownloadStartToast(context);
}
private static DownloadNotifier getDownloadNotifier(Context context) {

Powered by Google App Engine
This is Rietveld 408576698