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

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

Issue 1128683003: Uninstalling bookmark apps should not DeleteOrigin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/data_deleter.cc
diff --git a/chrome/browser/extensions/data_deleter.cc b/chrome/browser/extensions/data_deleter.cc
index 2b875a2c896d05e8ce6f9adfeb6076b1ce850c97..ea31b16f114739acc53356c4432965d86e9779b0 100644
--- a/chrome/browser/extensions/data_deleter.cc
+++ b/chrome/browser/extensions/data_deleter.cc
@@ -100,9 +100,10 @@ void DataDeleter::StartDeleting(Profile* profile,
profile,
Extension::GetBaseURLFromExtensionId(extension->id()));
- if (extension->is_hosted_app() &&
- !profile->GetExtensionSpecialStoragePolicy()->
- IsStorageProtected(launch_web_url_origin)) {
+ ExtensionSpecialStoragePolicy* storage_policy =
+ profile->GetExtensionSpecialStoragePolicy();
+ if (storage_policy->NeedsProtection(extension) &&
+ !storage_policy->IsStorageProtected(launch_web_url_origin)) {
DeleteOrigin(profile,
partition,
launch_web_url_origin,
« 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