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

Unified Diff: content/browser/download/download_resource_handler.cc

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed changes related to cancelling with the HANDLED_EXTERNALLY status code Created 8 years, 7 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
Index: content/browser/download/download_resource_handler.cc
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
index 757e274a830b96730950d0e119a69879fc84637b..c62ffcf113edd1ac6aa68c4e5e3df058d23aaec0 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -120,7 +120,7 @@ bool DownloadResourceHandler::OnResponseStarted(
// Deleted in DownloadManager.
scoped_ptr<DownloadCreateInfo> info(new DownloadCreateInfo(
base::Time::Now(), 0, content_length_, DownloadItem::IN_PROGRESS,
- request_->net_log(), request_info->has_user_gesture(),
+ request_->net_log(), request_info->HasUserGesture(),
request_info->transition_type()));
info->url_chain = request_->url_chain();
info->referrer_url = GURL(request_->referrer());
@@ -128,7 +128,7 @@ bool DownloadResourceHandler::OnResponseStarted(
info->received_bytes = save_info_.offset;
info->total_bytes = content_length_;
info->state = DownloadItem::IN_PROGRESS;
- info->has_user_gesture = request_info->has_user_gesture();
+ info->has_user_gesture = request_info->HasUserGesture();
info->content_disposition = content_disposition_;
info->mime_type = response->mime_type;
info->remote_address = request_->GetSocketAddress().host();

Powered by Google App Engine
This is Rietveld 408576698