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

Issue 1692693003: add a flag to enable/disable download interception on android (Closed)

Created:
4 years, 10 months ago by qinmin
Modified:
4 years, 10 months ago
Reviewers:
asanka, svaldez, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

add a flag to enable/disable download interception on android Currently some of the download are passed to Android DownloadManager. We might change that behavior in the future. This CL adds a flag to allow us to toggle that behavior. Chrome flag and finch flag "EnableDownloadInterception" are added to allow locally/remotely set/unset the flag BUG=545640 Committed: https://crrev.com/d888e48bbc95627822d5fc10913e245a33e2db77 Cr-Commit-Position: refs/heads/master@{#377724}

Patch Set 1 #

Patch Set 2 : allow finch trial to turn on off the flag #

Total comments: 6

Patch Set 3 : allow server trial to be overriden #

Total comments: 8

Patch Set 4 : nits #

Total comments: 4

Patch Set 5 : use base::Feature instead of switches #

Patch Set 6 : remove unused variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/intercept_download_resource_throttle.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/intercept_download_resource_throttle.cc View 1 2 3 4 5 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
qinmin
@PTAL, really tiny change.
4 years, 10 months ago (2016-02-11 21:11:23 UTC) #2
svaldez
What does the flag default to? I think we want to default to intercepting the ...
4 years, 10 months ago (2016-02-11 21:32:28 UTC) #3
asanka
On 2016/02/11 21:32:28, svaldez wrote: > What does the flag default to? I think we ...
4 years, 10 months ago (2016-02-11 21:47:56 UTC) #4
qinmin
On 2016/02/11 21:47:56, asanka wrote: > On 2016/02/11 21:32:28, svaldez wrote: > > What does ...
4 years, 10 months ago (2016-02-11 22:21:42 UTC) #5
asanka
Have a look at https://code.google.com/p/chromium/codesearch#chromium/src/base/feature_list.h If you are controlling a flag via a server-side experiment, ...
4 years, 10 months ago (2016-02-11 22:49:20 UTC) #7
qinmin
https://codereview.chromium.org/1692693003/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1692693003/diff/20001/chrome/app/generated_resources.grd#newcode5694 chrome/app/generated_resources.grd:5694: + <message name="IDS_FLAGS_DOWNLOAD_INTERCEPTION_NAME" desc="Title for the flag to enable ...
4 years, 10 months ago (2016-02-12 00:31:56 UTC) #8
svaldez
https://codereview.chromium.org/1692693003/diff/60001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1692693003/diff/60001/chrome/app/generated_resources.grd#newcode5695 chrome/app/generated_resources.grd:5695: + <message name="IDS_FLAGS_DOWNLOAD_INTERCEPTION_NAME" desc="Title for the flag to enable ...
4 years, 10 months ago (2016-02-12 15:21:20 UTC) #10
qinmin
https://codereview.chromium.org/1692693003/diff/60001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1692693003/diff/60001/chrome/app/generated_resources.grd#newcode5695 chrome/app/generated_resources.grd:5695: + <message name="IDS_FLAGS_DOWNLOAD_INTERCEPTION_NAME" desc="Title for the flag to enable ...
4 years, 10 months ago (2016-02-12 17:27:00 UTC) #11
qinmin
ping, asanka@, would you mind take another look?
4 years, 10 months ago (2016-02-16 22:54:37 UTC) #12
asanka
LGTM % nits. But I'd strongly prefer using base::Feature for controlling this rather than adding ...
4 years, 10 months ago (2016-02-23 02:55:30 UTC) #13
sky
What is the reason not to use base::Feature for controlling this? On Mon, Feb 22, ...
4 years, 10 months ago (2016-02-23 18:51:57 UTC) #14
qinmin
Switched to use base::Feature, PTAL again https://codereview.chromium.org/1692693003/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1692693003/diff/80001/chrome/app/generated_resources.grd#newcode5699 chrome/app/generated_resources.grd:5699: + Enable download ...
4 years, 10 months ago (2016-02-23 22:28:05 UTC) #15
qinmin
ping, sky@, would you please take another look as I switched to from switches to ...
4 years, 10 months ago (2016-02-25 17:38:25 UTC) #16
sky
LGTM
4 years, 10 months ago (2016-02-25 18:47:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692693003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692693003/100001
4 years, 10 months ago (2016-02-25 18:57:06 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/27408)
4 years, 10 months ago (2016-02-25 19:51:19 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692693003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692693003/120001
4 years, 10 months ago (2016-02-25 20:45:15 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-25 22:14:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692693003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692693003/120001
4 years, 10 months ago (2016-02-25 23:29:47 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 10 months ago (2016-02-26 00:24:37 UTC) #31
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 00:25:50 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d888e48bbc95627822d5fc10913e245a33e2db77
Cr-Commit-Position: refs/heads/master@{#377724}

Powered by Google App Engine
This is Rietveld 408576698