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

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 1097383005: Add possibility to define data callback to BitmapFetcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@r479598_extensions_content_verifier_directories_fail
Patch Set: Another approach - split Start to Init and Start Created 5 years, 8 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: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
index a3a58c760e47a6885f7644f2def8a4ff68f48872..f954179ba025222689235ab65416bf44cbbfdcfb 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -616,10 +616,11 @@ ExtensionFunction::ResponseAction WebstorePrivateInstallBundleFunction::Run() {
// The bitmap fetcher will call us back via OnFetchComplete.
icon_fetcher_.reset(new chrome::BitmapFetcher(icon_url, this));
- icon_fetcher_->Start(
+ icon_fetcher_->Init(
browser_context()->GetRequestContext(), std::string(),
net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
net::LOAD_DO_NOT_SAVE_COOKIES | net::LOAD_DO_NOT_SEND_COOKIES);
+ icon_fetcher_->Start();
} else {
base::MessageLoopProxy::current()->PostTask(
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698