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

Unified Diff: chrome/test/testing_profile.h

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.h
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index 8a32c9c66f621665efbb04dee3bde46493e390c1..d65739e037b261561d97b946b45e71d8d1d88aa6 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -11,6 +11,7 @@
#include "base/scoped_temp_dir.h"
#include "base/timer.h"
#include "chrome/browser/profiles/profile.h"
+#include "content/browser/appcache/chrome_appcache_service.h"
namespace content {
class ResourceContextGetter;
@@ -129,6 +130,10 @@ class TestingProfile : public Profile {
const FilePath& install_directory,
bool autoupdate_enabled);
+ // Normally a TestingProfile doesn't have a ChromeAppCacheService, but this
+ // function can be used for setting it if needed.
+ void SetAppCacheService(ChromeAppCacheService* appcache_service);
+
TestingPrefService* GetTestingPrefService();
virtual TestingProfile* AsTestingProfile();
@@ -393,6 +398,8 @@ class TestingProfile : public Profile {
// death. Defaults to the Singleton implementation but overridable for
// testing.
ProfileDependencyManager* profile_dependency_manager_;
+
+ scoped_refptr<ChromeAppCacheService> appcache_service_;
};
// A profile that derives from another profile. This does not actually

Powered by Google App Engine
This is Rietveld 408576698