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

Unified Diff: chrome/browser/browsing_data/browsing_data_channel_id_helper.cc

Issue 508223002: Remove Profile dependency from browsing_data_channel_id_helper.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/browsing_data/browsing_data_channel_id_helper.cc
diff --git a/chrome/browser/browsing_data/browsing_data_channel_id_helper.cc b/chrome/browser/browsing_data/browsing_data_channel_id_helper.cc
index f7dc4d10fb69fd82d71e19678b62ec5263e4ea55..801ce6e6f566b5a689921ecdd354d29bd1c77e37 100644
--- a/chrome/browser/browsing_data/browsing_data_channel_id_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_channel_id_helper.cc
@@ -8,7 +8,6 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
-#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/browser_thread.h"
#include "net/ssl/channel_id_service.h"
#include "net/url_request/url_request_context.h"
@@ -21,7 +20,8 @@ namespace {
class BrowsingDataChannelIDHelperImpl
: public BrowsingDataChannelIDHelper {
public:
- explicit BrowsingDataChannelIDHelperImpl(Profile* profile);
+ explicit BrowsingDataChannelIDHelperImpl(
+ net::URLRequestContextGetter* request_context);
// BrowsingDataChannelIDHelper methods.
virtual void StartFetching(const FetchResultCallback& callback) OVERRIDE;
@@ -60,10 +60,9 @@ class BrowsingDataChannelIDHelperImpl
DISALLOW_COPY_AND_ASSIGN(BrowsingDataChannelIDHelperImpl);
};
-BrowsingDataChannelIDHelperImpl::
-BrowsingDataChannelIDHelperImpl(Profile* profile)
- : is_fetching_(false),
- request_context_getter_(profile->GetRequestContext()) {
+BrowsingDataChannelIDHelperImpl::BrowsingDataChannelIDHelperImpl(
+ net::URLRequestContextGetter* request_context)
+ : is_fetching_(false), request_context_getter_(request_context) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
}
@@ -155,9 +154,9 @@ void BrowsingDataChannelIDHelperImpl::DeleteCallback() {
} // namespace
// static
-BrowsingDataChannelIDHelper*
-BrowsingDataChannelIDHelper::Create(Profile* profile) {
- return new BrowsingDataChannelIDHelperImpl(profile);
+BrowsingDataChannelIDHelper* BrowsingDataChannelIDHelper::Create(
+ net::URLRequestContextGetter* request_context) {
+ return new BrowsingDataChannelIDHelperImpl(request_context);
}
CannedBrowsingDataChannelIDHelper::

Powered by Google App Engine
This is Rietveld 408576698