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

Unified Diff: chrome/browser/bitmap_fetcher.cc

Issue 222313005: [Profiles] Download high-res avatars using the --new-profile-management flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/bitmap_fetcher.cc
diff --git a/chrome/browser/bitmap_fetcher.cc b/chrome/browser/bitmap_fetcher.cc
index 391e81edde2c48abb3c1faae3c963450f282930d..c31b62aca2268e4b4f6b1cb212937588a2c6b5cb 100644
--- a/chrome/browser/bitmap_fetcher.cc
+++ b/chrome/browser/bitmap_fetcher.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/bitmap_fetcher.h"
-#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/browser_thread.h"
#include "net/url_request/url_fetcher.h"
+#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_status.h"
namespace chrome {
@@ -19,12 +19,12 @@ BitmapFetcher::BitmapFetcher(const GURL& url,
BitmapFetcher::~BitmapFetcher() {}
-void BitmapFetcher::Start(Profile* profile) {
+void BitmapFetcher::Start(net::URLRequestContextGetter* request_context) {
if (url_fetcher_ != NULL)
return;
url_fetcher_.reset(net::URLFetcher::Create(url_, net::URLFetcher::GET, this));
- url_fetcher_->SetRequestContext(profile->GetRequestContext());
+ url_fetcher_->SetRequestContext(request_context);
url_fetcher_->Start();
}

Powered by Google App Engine
This is Rietveld 408576698