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

Unified Diff: chrome/browser/android/download/download_manager_service.cc

Issue 2737833002: Don't cancel download when dismissing the notification (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
« no previous file with comments | « chrome/browser/android/download/download_manager_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/download/download_manager_service.cc
diff --git a/chrome/browser/android/download/download_manager_service.cc b/chrome/browser/android/download/download_manager_service.cc
index 65ebf678ea575d091ad2cf251a1ac5bd7f25fbbb..293995ccf2fe229624f89157120eec5b806a8f9d 100644
--- a/chrome/browser/android/download/download_manager_service.cc
+++ b/chrome/browser/android/download/download_manager_service.cc
@@ -243,13 +243,10 @@ void DownloadManagerService::CancelDownload(
JNIEnv* env,
jobject obj,
const JavaParamRef<jstring>& jdownload_guid,
- bool is_off_the_record,
- bool is_notification_dismissed) {
+ bool is_off_the_record) {
std::string download_guid = ConvertJavaStringToUTF8(env, jdownload_guid);
DownloadController::RecordDownloadCancelReason(
- is_notification_dismissed ?
- DownloadController::CANCEL_REASON_NOTIFICATION_DISMISSED :
- DownloadController::CANCEL_REASON_ACTION_BUTTON);
+ DownloadController::CANCEL_REASON_ACTION_BUTTON);
if (is_history_query_complete_ || is_off_the_record)
CancelDownloadInternal(download_guid, is_off_the_record);
else
« no previous file with comments | « chrome/browser/android/download/download_manager_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698