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

Issue 2341643008: Defaulting all downloads to go through Chrome network stack (Closed)

Created:
4 years, 3 months ago by qinmin
Modified:
4 years, 3 months ago
Reviewers:
asanka, Nico, gone, jwd
CC:
asanka, asvitkine+watch_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Defaulting all downloads to go through Chrome network stack In M53, we started a experiment on disabling system DownloadManager. And In M54, we expect the experiment to be expanded to 100% of the user. This change removes this field trial flag to default all download through Chrome. This allows us to unify the download code path between android and desktop. Android DownloadManager will still be used by OMA downloads. And will clean up all the code that calls into ChromeDownloadDelegate::EnqueueDownloadManagerRequest() in a separate CL. BUG=647755 Committed: https://crrev.com/aea2c7d5fcc45b9c606f7595c4c12f652ce03abd Cr-Commit-Position: refs/heads/master@{#420179}

Patch Set 1 #

Patch Set 2 : remove strings #

Patch Set 3 : remove extern variable #

Patch Set 4 : remove extern #

Total comments: 7

Patch Set 5 : rebase #

Patch Set 6 : more clean up #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -324 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java View 1 2 3 4 5 3 chunks +10 lines, -12 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java View 1 2 3 4 5 6 5 chunks +14 lines, -24 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTestBase.java View 1 2 3 4 5 6 3 chunks +0 lines, -28 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImplTest.java View 1 2 3 4 5 3 chunks +0 lines, -11 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 2 chunks +0 lines, -4 lines 0 comments Download
D chrome/browser/android/intercept_download_resource_throttle.h View 1 2 3 4 1 chunk +0 lines, -53 lines 0 comments Download
D chrome/browser/android/intercept_download_resource_throttle.cc View 1 2 3 4 1 chunk +0 lines, -162 lines 0 comments Download
M chrome/browser/download/download_ui_controller.cc View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/test/data/android/download/dangerous.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
D chrome/test/data/android/download/test.apk View 1 2 3 4 5 6 Binary file 0 comments Download
A + chrome/test/data/android/download/test.swf View 1 2 3 4 5 6 Binary file 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (23 generated)
qinmin
PTAL
4 years, 3 months ago (2016-09-16 18:57:32 UTC) #2
gone
lgtm
4 years, 3 months ago (2016-09-19 17:06:11 UTC) #4
Nico
what about https://cs.chromium.org/chromium/src/chrome/browser/android/chrome_feature_list.h?q=ksystemdownloadmanager&sq=package:chromium&l=28&dr=CSs https://cs.chromium.org/chromium/src/chrome/app/generated_resources.grd?q=IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_NAME&sq=package:chromium&l=5906&dr=C etc?
4 years, 3 months ago (2016-09-19 17:39:33 UTC) #5
qinmin
On 2016/09/19 17:39:33, Nico wrote: > what about > https://cs.chromium.org/chromium/src/chrome/browser/android/chrome_feature_list.h?q=ksystemdownloadmanager&sq=package:chromium&l=28&dr=CSs > https://cs.chromium.org/chromium/src/chrome/app/generated_resources.grd?q=IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_NAME&sq=package:chromium&l=5906&dr=C > etc? thanks ...
4 years, 3 months ago (2016-09-19 18:03:54 UTC) #6
Nico
On 2016/09/19 18:03:54, qinmin wrote: > On 2016/09/19 17:39:33, Nico wrote: > > what about ...
4 years, 3 months ago (2016-09-19 18:04:29 UTC) #7
qinmin
On 2016/09/19 18:04:29, Nico wrote: > On 2016/09/19 18:03:54, qinmin wrote: > > On 2016/09/19 ...
4 years, 3 months ago (2016-09-19 18:08:27 UTC) #8
qinmin
On 2016/09/19 18:08:27, qinmin wrote: > On 2016/09/19 18:04:29, Nico wrote: > > On 2016/09/19 ...
4 years, 3 months ago (2016-09-19 18:15:20 UTC) #10
qinmin
On 2016/09/19 18:15:20, qinmin wrote: > On 2016/09/19 18:08:27, qinmin wrote: > > On 2016/09/19 ...
4 years, 3 months ago (2016-09-19 18:17:12 UTC) #11
Nico
lgtm
4 years, 3 months ago (2016-09-19 18:18:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2341643008/80001
4 years, 3 months ago (2016-09-19 18:34:20 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/130918) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 3 months ago (2016-09-19 18:38:00 UTC) #17
asanka
* Update the ExternalNavigationDelegateImplTest.java to remove tests with SystemDownloadManager. * Update the comment in AndroidUIControllerDelegate ...
4 years, 3 months ago (2016-09-19 19:29:12 UTC) #18
gone
https://codereview.chromium.org/2341643008/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java (right): https://codereview.chromium.org/2341643008/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java#newcode1077 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java:1077: // Open the Android Download Manager. On 2016/09/19 19:29:12, ...
4 years, 3 months ago (2016-09-19 19:33:56 UTC) #19
asanka
Also, could you comment on what will happen to the enqueueDownloadManagerRequest codepaths? I assume other ...
4 years, 3 months ago (2016-09-19 19:38:50 UTC) #20
asanka
[sorry one more thing] qinmin: Would you mind updating the CL description to indicate that ...
4 years, 3 months ago (2016-09-19 20:05:06 UTC) #21
gone
https://codereview.chromium.org/2341643008/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java (right): https://codereview.chromium.org/2341643008/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java#newcode1077 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java:1077: // Open the Android Download Manager. On 2016/09/19 20:05:06, ...
4 years, 3 months ago (2016-09-19 20:10:42 UTC) #22
qinmin
* Updated the ExternalNavigationDelegateImplTest.java to remove a test with SystemDownloadManager. * Updated the comment in ...
4 years, 3 months ago (2016-09-19 21:16:13 UTC) #24
asanka
lgtm
4 years, 3 months ago (2016-09-20 20:28:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2341643008/120001
4 years, 3 months ago (2016-09-20 20:47:39 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/132063) ios-device on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-20 20:50:59 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2341643008/140001
4 years, 3 months ago (2016-09-20 23:49:56 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/263431)
4 years, 3 months ago (2016-09-20 23:59:44 UTC) #35
qinmin
+jwd for histogram.xml OWNER
4 years, 3 months ago (2016-09-21 00:04:50 UTC) #37
jwd
lgtm
4 years, 3 months ago (2016-09-21 17:54:39 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2341643008/160001
4 years, 3 months ago (2016-09-21 22:12:29 UTC) #46
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 3 months ago (2016-09-21 22:19:57 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 22:22:44 UTC) #50
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/aea2c7d5fcc45b9c606f7595c4c12f652ce03abd
Cr-Commit-Position: refs/heads/master@{#420179}

Powered by Google App Engine
This is Rietveld 408576698