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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 6995013: More progress towards removing content settings code from the content layer. We can't use Cookie... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments and sync Created 9 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/renderer_host/render_message_filter.cc
===================================================================
--- content/browser/renderer_host/render_message_filter.cc (revision 84789)
+++ content/browser/renderer_host/render_message_filter.cc (working copy)
@@ -281,6 +281,7 @@
extension_info_map_(profile->GetExtensionInfoMap()),
content_settings_(profile->GetHostContentSettingsMap()),
request_context_(request_context),
+ resource_context_(profile->GetResourceContext()),
extensions_request_context_(profile->GetRequestContextForExtensions()),
render_widget_helper_(render_widget_helper),
notification_prefs_(
@@ -656,8 +657,6 @@
void RenderMessageFilter::OnDownloadUrl(const IPC::Message& message,
const GURL& url,
const GURL& referrer) {
- net::URLRequestContext* context = request_context_->GetURLRequestContext();
-
// Don't show "Save As" UI.
bool prompt_for_save_location = false;
resource_dispatcher_host_->BeginDownload(url,
@@ -666,7 +665,7 @@
prompt_for_save_location,
render_process_id_,
message.routing_id(),
- context);
+ resource_context_);
download_util::RecordDownloadCount(
download_util::INITIATED_BY_RENDERER_COUNT);
}
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/browser/renderer_host/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698