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

Unified Diff: chrome/browser/browsing_data_appcache_helper.cc

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 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/browsing_data_appcache_helper.h ('k') | chrome/browser/browsing_data_remover.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_appcache_helper.cc
===================================================================
--- chrome/browser/browsing_data_appcache_helper.cc (revision 122771)
+++ chrome/browser/browsing_data_appcache_helper.cc (working copy)
@@ -9,16 +9,18 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/resource_context.h"
#include "webkit/appcache/appcache_database.h"
#include "webkit/appcache/appcache_storage.h"
using appcache::AppCacheDatabase;
using content::BrowserContext;
using content::BrowserThread;
+using content::ResourceContext;
BrowsingDataAppCacheHelper::BrowsingDataAppCacheHelper(Profile* profile)
: is_fetching_(false),
- appcache_service_(BrowserContext::GetAppCacheService(profile)) {
+ resource_context_(profile->GetResourceContext()) {
}
void BrowsingDataAppCacheHelper::StartFetching(const base::Closure& callback) {
@@ -38,8 +40,8 @@
appcache_info_callback_.Reset(
base::Bind(&BrowsingDataAppCacheHelper::OnFetchComplete,
base::Unretained(this)));
- appcache_service_->GetAllAppCacheInfo(info_collection_,
- appcache_info_callback_.callback());
+ ResourceContext::GetAppCacheService(resource_context_)->
+ GetAllAppCacheInfo(info_collection_, appcache_info_callback_.callback());
}
void BrowsingDataAppCacheHelper::CancelNotification() {
@@ -64,7 +66,7 @@
return;
}
- appcache_service_->DeleteAppCacheGroup(
+ ResourceContext::GetAppCacheService(resource_context_)->DeleteAppCacheGroup(
manifest_url, net::CompletionCallback());
}
« no previous file with comments | « chrome/browser/browsing_data_appcache_helper.h ('k') | chrome/browser/browsing_data_remover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698