Commit db530fd7 authored by wittman@chromium.org's avatar wittman@chromium.org

Enforce "override bookmarks UI" manifest permissions for bookmark shortcut overrides

BUG=382564

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277849 0039d316-1c4b-4281-b951-d872f2087c98
parent aeacadad
......@@ -181,10 +181,9 @@ bool UIOverridesHandler::Parse(Extension* extension, base::string16* error) {
manifest_keys::kUIOverride);
return false;
}
UIOverrides* assigned_ui_overrides = info.get();
info->manifest_permission.reset(new ManifestPermissionImpl(
info->bookmarks_ui.get() != NULL));
extension->SetManifestData(manifest_keys::kUIOverride, info.release());
assigned_ui_overrides->manifest_permission.reset(new ManifestPermissionImpl(
UIOverrides::RemovesBookmarkButton(extension)));
return true;
}
......
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