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

Unified Diff: chrome/browser/extensions/extension_util.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_util.cc
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc
index dd28913209f58be2934b1f20c15c4b18276edda1..7b0c514253f341902ba4ee332b664b02bde96dd4 100644
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -249,22 +249,10 @@ bool SiteHasIsolatedStorage(const GURL& extension_site_url,
content::BrowserContext* context) {
const Extension* extension = ExtensionRegistry::Get(context)->
enabled_extensions().GetExtensionOrAppByURL(extension_site_url);
- if (extension)
- return AppIsolationInfo::HasIsolatedStorage(extension);
-
- if (extension_site_url.SchemeIs(kExtensionScheme)) {
- // The site URL may also be from an evicted ephemeral app. We do not
- // immediately delete their data when they are removed from extension
- // system.
- ExtensionPrefs* prefs = ExtensionPrefs::Get(context);
- DCHECK(prefs);
- scoped_ptr<ExtensionInfo> info = prefs->GetEvictedEphemeralAppInfo(
- extension_site_url.host());
- if (info.get())
- return HasIsolatedStorage(*info);
- }
+ if (!extension)
+ return false;
- return false;
+ return AppIsolationInfo::HasIsolatedStorage(extension);
}
const gfx::ImageSkia& GetDefaultAppIcon() {

Powered by Google App Engine
This is Rietveld 408576698