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

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

Issue 545243002: Clean up BrowsingDataAppCacheHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase fixed Created 6 years, 3 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_appcache_helper.cc
diff --git a/chrome/browser/browsing_data/browsing_data_appcache_helper.cc b/chrome/browser/browsing_data/browsing_data_appcache_helper.cc
index 613b193a00ce689c0cae365ef3ad7a68dbeb9a1a..b11e486353a4390f7066b90d78c7df38337888a6 100644
--- a/chrome/browser/browsing_data/browsing_data_appcache_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_appcache_helper.cc
@@ -7,19 +7,18 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "chrome/browser/browsing_data/browsing_data_helper.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
-using content::BrowserThread;
using content::BrowserContext;
+using content::BrowserThread;
-BrowsingDataAppCacheHelper::BrowsingDataAppCacheHelper(Profile* profile)
+BrowsingDataAppCacheHelper::BrowsingDataAppCacheHelper(
+ BrowserContext* browser_context)
: is_fetching_(false),
- appcache_service_(BrowserContext::GetDefaultStoragePartition(profile)->
- GetAppCacheService()) {
+ appcache_service_(BrowserContext::GetDefaultStoragePartition(
+ browser_context)->GetAppCacheService()) {
}
void BrowsingDataAppCacheHelper::StartFetching(const base::Closure& callback) {
@@ -87,8 +86,8 @@ void BrowsingDataAppCacheHelper::OnFetchComplete(int rv) {
}
CannedBrowsingDataAppCacheHelper::CannedBrowsingDataAppCacheHelper(
- Profile* profile)
- : BrowsingDataAppCacheHelper(profile) {
+ BrowserContext* browser_context)
+ : BrowsingDataAppCacheHelper(browser_context) {
info_collection_ = new content::AppCacheInfoCollection;
}

Powered by Google App Engine
This is Rietveld 408576698