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

Unified Diff: chrome/test/testing_profile.cc

Issue 7210006: AppCaches which belong to hosted apps are not protected from deletion (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Clearing appcaches & waiting in Shutdown(). Created 9 years, 5 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/test/testing_profile.cc
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index ec65b2bbc60764497921b1ffd9e06a6525d0f9fc..106254c30a17db6c9fa8c04282200f1e11c8416c 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -347,6 +347,11 @@ ExtensionService* TestingProfile::CreateExtensionService(
return extension_service_.get();
}
+void TestingProfile::SetAppCacheService(
+ ChromeAppCacheService* appcache_service) {
+ appcache_service_ = appcache_service;
+}
+
FilePath TestingProfile::GetPath() {
DCHECK(temp_dir_.IsValid()); // TODO(phajdan.jr): do it better.
return temp_dir_.path();
@@ -392,7 +397,7 @@ Profile* TestingProfile::GetOriginalProfile() {
}
ChromeAppCacheService* TestingProfile::GetAppCacheService() {
- return NULL;
+ return appcache_service_.get();
}
webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() {

Powered by Google App Engine
This is Rietveld 408576698