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

Issue 394993002: Bypass android download manager if response is not yet received (Closed)

Created:
6 years, 5 months ago by qinmin
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Bypass android download manager if response is not yet received When the InterceptDownloadResourceThrottle intercepts the download request, the response might not have been received yet. As a result, we are not sure about the mime type and and other file informations. Using android Download Manager at this stage is premature and risky. This change bypasses android download manager in this case. BUG=394092 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283748

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressing comments #

Total comments: 2

Patch Set 3 : nits #

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

Messages

Total messages: 9 (0 generated)
qinmin
PTAL
6 years, 5 months ago (2014-07-15 23:02:52 UTC) #1
David Trainor- moved to gerrit
lgtm
6 years, 5 months ago (2014-07-16 07:48:55 UTC) #2
asanka
https://chromiumcodereview.appspot.com/394993002/diff/1/chrome/browser/android/intercept_download_resource_throttle.cc File chrome/browser/android/intercept_download_resource_throttle.cc (right): https://chromiumcodereview.appspot.com/394993002/diff/1/chrome/browser/android/intercept_download_resource_throttle.cc#newcode34 chrome/browser/android/intercept_download_resource_throttle.cc:34: ProcessDownloadRequest(); This won't do anything now. WillStartRequest is called ...
6 years, 5 months ago (2014-07-16 16:53:10 UTC) #3
qinmin
https://chromiumcodereview.appspot.com/394993002/diff/1/chrome/browser/android/intercept_download_resource_throttle.cc File chrome/browser/android/intercept_download_resource_throttle.cc (right): https://chromiumcodereview.appspot.com/394993002/diff/1/chrome/browser/android/intercept_download_resource_throttle.cc#newcode34 chrome/browser/android/intercept_download_resource_throttle.cc:34: ProcessDownloadRequest(); Remove the call to ProcessDownloadRequest here. On 2014/07/16 ...
6 years, 5 months ago (2014-07-16 17:13:40 UTC) #4
asanka
LGTM https://chromiumcodereview.appspot.com/394993002/diff/20001/chrome/browser/android/intercept_download_resource_throttle.cc File chrome/browser/android/intercept_download_resource_throttle.cc (right): https://chromiumcodereview.appspot.com/394993002/diff/20001/chrome/browser/android/intercept_download_resource_throttle.cc#newcode34 chrome/browser/android/intercept_download_resource_throttle.cc:34: } Nit: You can remove the implementation here ...
6 years, 5 months ago (2014-07-16 19:14:19 UTC) #5
qinmin
https://chromiumcodereview.appspot.com/394993002/diff/20001/chrome/browser/android/intercept_download_resource_throttle.cc File chrome/browser/android/intercept_download_resource_throttle.cc (right): https://chromiumcodereview.appspot.com/394993002/diff/20001/chrome/browser/android/intercept_download_resource_throttle.cc#newcode34 chrome/browser/android/intercept_download_resource_throttle.cc:34: } On 2014/07/16 19:14:18, asanka wrote: > Nit: You ...
6 years, 5 months ago (2014-07-16 19:18:19 UTC) #6
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 5 months ago (2014-07-16 19:18:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/394993002/40001
6 years, 5 months ago (2014-07-16 19:19:49 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 11:12:43 UTC) #9
Message was sent while issue was closed.
Change committed as 283748

Powered by Google App Engine
This is Rietveld 408576698