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

Unified Diff: chrome/browser/extensions/extension_prefs.h

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: Basic code 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
Index: chrome/browser/extensions/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index 6adb0156cec8b96cd1721b315c662e1b5aa34534..93cd49d73325421963bf684170b36f4639b305fc 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -494,6 +494,12 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
// prefs::kExtensionAllowedInstallSites for more information.
URLPatternSet GetAllowedInstallSites();
+ // Schedules garbage collection of an extension's on-disk data on the next
+ // start of this ExtensionService. Applies only to extensions with isolated
+ // storage.
+ void SetNeedsStorageGarbageCollection(bool value);
+ bool NeedsStorageGarbageCollection();
+
private:
friend class ExtensionPrefsUninstallExtension; // Unit test.

Powered by Google App Engine
This is Rietveld 408576698