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

Issue 2757403002: Fix an issue that OMA download is not intercepted on Android (Closed)

Created:
3 years, 9 months ago by qinmin
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asanka, loading-reviews_chromium.org, Randy Smith (Not in Mondays), agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix an issue that OMA download is not intercepted on Android We use InterceptDownloadResourceThrottle to intercept OMA download. However, MimeSniffingResourceHandler::MaybeStartInterception always start the download with is_new_request == false. This CL fixes the issue by moving InterceptDownloadResourceThrottle out the if(is_new_request) block. And append the throttle after AppendStandardResourceThrottles so we won't skip safe browsing This CL also fixes an issue that displayed filename is null on the snackbar BUG=675559 Review-Url: https://codereview.chromium.org/2757403002 Cr-Commit-Position: refs/heads/master@{#458666} Committed: https://chromium.googlesource.com/chromium/src/+/24c83fb4132db2d3ec271c7ae3ad22f6dcc9b5bc

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : fix clang warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -11 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerDelegate.java View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java View 1 4 chunks +26 lines, -8 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadTest.java View 1 2 4 chunks +55 lines, -0 lines 0 comments Download
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
qinmin
PTAL +mmenke@ for chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc +dtrainor@ for java changes
3 years, 9 months ago (2017-03-20 20:27:22 UTC) #2
mmenke
On 2017/03/20 20:27:22, qinmin wrote: > PTAL > +mmenke@ for chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc > > +dtrainor@ for ...
3 years, 9 months ago (2017-03-20 20:36:23 UTC) #3
David Trainor- moved to gerrit
lgtm % mmenke comments
3 years, 9 months ago (2017-03-21 15:38:00 UTC) #4
qinmin
On 2017/03/20 20:36:23, mmenke wrote: > On 2017/03/20 20:27:22, qinmin wrote: > > PTAL > ...
3 years, 9 months ago (2017-03-21 16:44:20 UTC) #5
mmenke
On 2017/03/21 16:44:20, qinmin wrote: > On 2017/03/20 20:36:23, mmenke wrote: > > On 2017/03/20 ...
3 years, 9 months ago (2017-03-21 21:41:19 UTC) #6
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/2757403002/20001
3 years, 9 months ago (2017-03-21 22:47:39 UTC) #9
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/390878)
3 years, 9 months ago (2017-03-21 22:59:41 UTC) #11
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/2757403002/40001
3 years, 9 months ago (2017-03-22 06:31:03 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 07:28:53 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/24c83fb4132db2d3ec271c7ae3ad...

Powered by Google App Engine
This is Rietveld 408576698