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

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

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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_manager_impl.cc
===================================================================
--- content/browser/download/download_manager_impl.cc (revision 121250)
+++ content/browser/download/download_manager_impl.cc (working copy)
@@ -74,7 +74,7 @@
const DownloadSaveInfo& save_info,
ResourceDispatcherHost* resource_dispatcher_host,
const RenderParams& render_params,
- const content::ResourceContext* context) {
+ content::ResourceContext* context) {
scoped_ptr<net::URLRequest> request(
new net::URLRequest(url_params.url_, resource_dispatcher_host));
request->set_referrer(url_params.referrer_.spec());
@@ -94,7 +94,7 @@
DownloadResourceHandler::OnStartedCallback(),
render_params.render_process_id_,
render_params.render_view_id_,
- *context);
+ context);
}
class MapValueIteratorAdapter {
@@ -847,7 +847,7 @@
resource_dispatcher_host,
RenderParams(web_contents->GetRenderProcessHost()->GetID(),
web_contents->GetRenderViewHost()->routing_id()),
- &web_contents->GetBrowserContext()->GetResourceContext()));
+ web_contents->GetBrowserContext()->GetResourceContext()));
}
void DownloadManagerImpl::AddObserver(Observer* observer) {
« no previous file with comments | « content/browser/appcache/chrome_appcache_service_unittest.cc ('k') | content/browser/download/save_file_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698