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

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: 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 29ce08ba0c8c2bb34ef07da7873e916638cbc63e..114c4096b86636be05a8f22db3848f14403b7a89 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
@@ -662,9 +662,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));
@@ -679,6 +679,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