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

Unified Diff: chrome/browser/bitmap_fetcher.cc

Issue 253623002: Remove BitmapFetcher's dependency on Profile (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
« no previous file with comments | « chrome/browser/bitmap_fetcher.h ('k') | chrome/browser/bitmap_fetcher_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « chrome/browser/bitmap_fetcher.h ('k') | chrome/browser/bitmap_fetcher_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698