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

Unified Diff: chrome/common/extensions/manifest_handlers/ui_overrides_handler.cc

Issue 320323003: Enforce "override bookmarks UI" manifest permissions for bookmark shortcut overrides (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stars-remove-settings-overrides-key
Patch Set: check bookmarks_ui property 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
« 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/common/extensions/manifest_handlers/ui_overrides_handler.cc
diff --git a/chrome/common/extensions/manifest_handlers/ui_overrides_handler.cc b/chrome/common/extensions/manifest_handlers/ui_overrides_handler.cc
index 5e387da6909acf1b82ab1ded681f262dbae0ddec..6358eddaadb1fe2660dc31e4e6178a25c10ca44f 100644
--- a/chrome/common/extensions/manifest_handlers/ui_overrides_handler.cc
+++ b/chrome/common/extensions/manifest_handlers/ui_overrides_handler.cc
@@ -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;
}
« 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