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

Unified Diff: chrome/browser/plugin_installer.cc

Issue 9580002: Add ResourceRequestInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_installer.cc
===================================================================
--- chrome/browser/plugin_installer.cc (revision 125418)
+++ chrome/browser/plugin_installer.cc (working copy)
@@ -31,13 +31,13 @@
namespace {
void BeginDownload(const GURL& url,
- ResourceDispatcherHost* rdh,
content::ResourceContext* resource_context,
int render_process_host_id,
int render_view_host_routing_id,
const DownloadResourceHandler::OnStartedCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ ResourceDispatcherHost* rdh = ResourceDispatcherHost::Get();
scoped_ptr<net::URLRequest> request(
new net::URLRequest(url, rdh));
net::Error error = rdh->BeginDownload(
@@ -145,7 +145,7 @@
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&BeginDownload,
- plugin_url_, ResourceDispatcherHost::Get(),
+ plugin_url_,
wrapper->profile()->GetResourceContext(),
web_contents->GetRenderProcessHost()->GetID(),
web_contents->GetRenderViewHost()->GetRoutingID(),
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698