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

Unified Diff: chrome/browser/banners/app_banner_data_fetcher.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: Updated documentation 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/banners/app_banner_data_fetcher.cc
diff --git a/chrome/browser/banners/app_banner_data_fetcher.cc b/chrome/browser/banners/app_banner_data_fetcher.cc
index a32ba763ea3ed522bd0b827f218c4918e9d17be8..b73b65be2659988187c7029a99cdf531764a57e4 100644
--- a/chrome/browser/banners/app_banner_data_fetcher.cc
+++ b/chrome/browser/banners/app_banner_data_fetcher.cc
@@ -194,11 +194,12 @@ bool AppBannerDataFetcher::FetchIcon(const GURL& image_url) {
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
bitmap_fetcher_.reset(new chrome::BitmapFetcher(image_url, this));
- bitmap_fetcher_->Start(
+ bitmap_fetcher_->Init(
profile->GetRequestContext(),
std::string(),
net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
net::LOAD_NORMAL);
+ bitmap_fetcher_->Start();
return true;
}
« no previous file with comments | « no previous file | chrome/browser/bitmap_fetcher/bitmap_fetcher.h » ('j') | chrome/browser/bitmap_fetcher/bitmap_fetcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698