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

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

Issue 143493005: Allow extensions to remove and override the bookmark shortcut key (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/common/extensions/manifest_handlers/settings_overrides_handler.cc
diff --git a/chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc b/chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc
index 0233edbd18e6a9338906faa0e8ac0670dd17f88d..a2cb9ec97355bf4be2c9485119b167414d55981f 100644
--- a/chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc
+++ b/chrome/common/extensions/manifest_handlers/settings_overrides_handler.cc
@@ -225,6 +225,11 @@ bool SettingsOverrides::RemovesBookmarkButton() const {
*bookmarks_ui->remove_button;
}
+bool SettingsOverrides::RemovesBookmarkShortcut() const {
+ return bookmarks_ui && bookmarks_ui->remove_bookmark_shortcut &&
+ *bookmarks_ui->remove_bookmark_shortcut;
+}
+
SettingsOverridesHandler::SettingsOverridesHandler() {}
SettingsOverridesHandler::~SettingsOverridesHandler() {}

Powered by Google App Engine
This is Rietveld 408576698