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

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

Issue 337323003: Remove the ability to retain local data of evicted ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove an unused declaration Created 6 years, 6 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 b9af2eafcbd804630eaf749f24c513654f20cd0e..7701c3cf79c12dd5d1785071fab81c2be41893f1 100644
--- a/chrome/browser/extensions/extension_garbage_collector.cc
+++ b/chrome/browser/extensions/extension_garbage_collector.cc
@@ -227,20 +227,6 @@ void ExtensionGarbageCollector::GarbageCollectIsolatedStorageIfNeeded() {
}
}
- // The data of ephemeral apps can outlive their cache lifetime. Ensure
- // they are not garbage collected.
- scoped_ptr<ExtensionPrefs::ExtensionsInfo> evicted_apps_info(
- extension_prefs->GetEvictedEphemeralAppsInfo());
- for (size_t i = 0; i < evicted_apps_info->size(); ++i) {
- ExtensionInfo* info = evicted_apps_info->at(i).get();
- if (util::HasIsolatedStorage(*info)) {
- active_paths->insert(content::BrowserContext::GetStoragePartitionForSite(
- context_,
- util::GetSiteForExtensionId(
- info->extension_id, context_))->GetPath());
- }
- }
-
ExtensionService* service =
ExtensionSystem::Get(context_)->extension_service();
service->OnGarbageCollectIsolatedStorageStart();

Powered by Google App Engine
This is Rietveld 408576698