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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc

Issue 243703003: Removes win8_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar Created 6 years, 8 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 | « chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc b/chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc
index 9e038efaeaebee939eae1227910a9c10c54a3c7b..aef5067b8b3938cb22e326b4342676e3aabd0f98 100644
--- a/chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc
@@ -129,12 +129,6 @@ void BookmarkContextMenuController::ExecuteCommand(int id, int event_flags) {
if (delegate_)
delegate_->WillExecuteCommand(id, selection_);
- if (ExecutePlatformCommand(id, event_flags)) {
- if (delegate_)
- delegate_->DidExecuteCommand(id);
- return;
- }
-
switch (id) {
case IDC_BOOKMARK_BAR_OPEN_ALL:
case IDC_BOOKMARK_BAR_OPEN_ALL_INCOGNITO:
@@ -323,10 +317,6 @@ bool BookmarkContextMenuController::IsCommandIdChecked(int command_id) const {
}
bool BookmarkContextMenuController::IsCommandIdEnabled(int command_id) const {
- bool enabled = false;
- if (IsPlatformCommandIdEnabled(command_id, &enabled))
- return enabled;
-
PrefService* prefs = profile_->GetPrefs();
bool is_root_node = selection_.size() == 1 &&
@@ -400,21 +390,6 @@ bool BookmarkContextMenuController::GetAcceleratorForCommandId(
return false;
}
-#if !defined(OS_WIN)
-bool BookmarkContextMenuController::IsPlatformCommandIdEnabled(
- int command_id,
- bool* enabled) const {
- // By default, there are no platform-specific enabled or disabled commands.
- return false;
-}
-
-bool BookmarkContextMenuController::ExecutePlatformCommand(int id,
- int event_flags) {
- // By default, there are no platform-specific commands.
- return false;
-}
-#endif // OS_WIN
-
void BookmarkContextMenuController::BookmarkModelChanged() {
if (delegate_)
delegate_->CloseMenu();
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698