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

Unified Diff: content/renderer/fetchers/image_resource_fetcher.cc

Issue 140823010: ResourceFetcher: Add POST support and the ability to set headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Gack Created 6 years, 11 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/renderer/fetchers/image_resource_fetcher.cc
===================================================================
--- content/renderer/fetchers/image_resource_fetcher.cc (revision 244609)
+++ content/renderer/fetchers/image_resource_fetcher.cc (working copy)
@@ -31,10 +31,10 @@
id_(id),
image_url_(image_url),
image_size_(image_size) {
- fetcher_.reset(ResourceFetcher::Create(
- image_url, frame, target_type,
- base::Bind(&ImageResourceFetcher::OnURLFetchComplete,
- base::Unretained(this))));
+ fetcher_.reset(ResourceFetcher::Create(image_url));
+ fetcher_->Start(frame, target_type,
+ base::Bind(&ImageResourceFetcher::OnURLFetchComplete,
+ base::Unretained(this)));
// Set subresource URL for crash reporting.
base::debug::SetCrashKeyValue("subresource_url", image_url.spec());
« no previous file with comments | « content/public/renderer/resource_fetcher.h ('k') | content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698