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

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

Issue 242203002: Don't garbage collect storage for disabled and crashed extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
awong 2014/04/21 17:54:19 Can you update the comment in the .h file to match
+ for (ExtensionSet::const_iterator iter = extensions->begin();
+ iter != extensions->end();
++iter) {
if (AppIsolationInfo::HasIsolatedStorage(iter->get())) {
active_paths->insert(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698