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

Unified Diff: content/browser/browser_context.cc

Issue 11419307: Garbage Collect the Storage directory on next profile start after an extension uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: done done Created 8 years 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/common/pref_names.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index 32bfe0d5a85ec82186ef89b66a125e2823d7afec..2385ca034ce11420062b72ecd8553f566a42042a 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -94,8 +94,19 @@ void PurgeMemoryOnIOThread(appcache::AppCacheService* appcache_service) {
// static
void BrowserContext::AsyncObliterateStoragePartition(
BrowserContext* browser_context,
- const GURL& site) {
- GetStoragePartitionMap(browser_context)->AsyncObliterate(site);
+ const GURL& site,
+ const base::Closure& on_gc_required) {
+ GetStoragePartitionMap(browser_context)->AsyncObliterate(site,
+ on_gc_required);
+}
+
+// static
+void BrowserContext::GarbageCollectStoragePartitions(
+ BrowserContext* browser_context,
+ scoped_ptr<base::hash_set<FilePath> > active_paths,
+ const base::Closure& done) {
+ GetStoragePartitionMap(browser_context)->GarbageCollect(
+ active_paths.Pass(), done);
}
DownloadManager* BrowserContext::GetDownloadManager(
« no previous file with comments | « chrome/common/pref_names.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698