Commit baf3044e authored by xiyuan's avatar xiyuan Committed by Commit bot

Uninstalling bookmark apps should not DeleteOrigin.

BUG=449816

Review URL: https://codereview.chromium.org/1128683003

Cr-Commit-Position: refs/heads/master@{#329578}
parent dccd714e
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment