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

Unified Diff: chrome/browser/extensions/extension_garbage_collector.cc

Issue 247113002: [Extension] Protect all installed extension from extension storage GC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update .h comment Created 6 years, 8 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/browser/extensions/extension_garbage_collector.cc
diff --git a/chrome/browser/extensions/extension_garbage_collector.cc b/chrome/browser/extensions/extension_garbage_collector.cc
index 9ed6405a641f0ce35233cf9a39faf7e34ad25ca3..df33b09902e305dfc18c67462c47232b1d968d0e 100644
--- a/chrome/browser/extensions/extension_garbage_collector.cc
+++ b/chrome/browser/extensions/extension_garbage_collector.cc
@@ -220,10 +220,10 @@ void ExtensionGarbageCollector::GarbageCollectIsolatedStorageIfNeeded() {
scoped_ptr<base::hash_set<base::FilePath> > active_paths(
new base::hash_set<base::FilePath>());
- const ExtensionSet& extensions =
- ExtensionRegistry::Get(context_)->enabled_extensions();
- for (ExtensionSet::const_iterator iter = extensions.begin();
- iter != extensions.end();
+ scoped_ptr<ExtensionSet> extensions =
+ ExtensionRegistry::Get(context_)->GenerateInstalledExtensionsSet();
Devlin 2014/04/23 21:16:53 It's a shame we have to keep around storage for al
Marijn Kruisselbrink 2014/04/23 23:09:51 It still feels wrong to delete data of an app just
Devlin 2014/04/23 23:21:06 Hmm... maybe I need more knowledge about what goes
+ for (ExtensionSet::const_iterator iter = extensions->begin();
+ iter != extensions->end();
++iter) {
if (AppIsolationInfo::HasIsolatedStorage(iter->get())) {
active_paths->insert(

Powered by Google App Engine
This is Rietveld 408576698