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

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

Issue 2737723002: Downloads : Last access time update for NTP, duplicate infobar and notifications (Closed)
Patch Set: more 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 c30c373a671bf8db89c9b9719f4c2778f7106642..bc4f784382424a0db1b21f5793fb9004d6b8a614 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
@@ -876,9 +876,9 @@ public class DownloadNotificationService extends Service {
* user click on the snackbar.
*/
@VisibleForTesting
- public int notifyDownloadSuccessful(
- String downloadGuid, String filePath, String fileName, long systemDownloadId,
- boolean isOfflinePage, boolean isSupportedMimeType) {
+ public int notifyDownloadSuccessful(String downloadGuid, String filePath, String fileName,
+ long systemDownloadId, boolean isOffTheRecord, boolean isOfflinePage,
+ boolean isSupportedMimeType) {
int notificationId = getNotificationId(downloadGuid);
ChromeNotificationBuilder builder = buildNotification(R.drawable.offline_pin, fileName,
mContext.getResources().getString(R.string.download_notification_completed));
@@ -893,6 +893,8 @@ public class DownloadNotificationService extends Service {
intent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, idArray);
intent.putExtra(EXTRA_DOWNLOAD_FILE_PATH, filePath);
intent.putExtra(EXTRA_IS_SUPPORTED_MIME_TYPE, isSupportedMimeType);
+ intent.putExtra(EXTRA_IS_OFF_THE_RECORD, isOffTheRecord);
+ intent.putExtra(EXTRA_DOWNLOAD_GUID, downloadGuid);
}
intent.setComponent(component);
builder.setContentIntent(PendingIntent.getBroadcast(

Powered by Google App Engine
This is Rietveld 408576698