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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc

Issue 2140963002: Added default implementations of GetAcceleratorForCommandId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@acceleratorprovider-const
Patch Set: Rebase. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // The option to hide the Managed Bookmarks folder is only available if 425 // The option to hide the Managed Bookmarks folder is only available if
426 // there are any managed bookmarks configured at all. 426 // there are any managed bookmarks configured at all.
427 bookmarks::ManagedBookmarkService* managed = 427 bookmarks::ManagedBookmarkService* managed =
428 ManagedBookmarkServiceFactory::GetForProfile(profile_); 428 ManagedBookmarkServiceFactory::GetForProfile(profile_);
429 return !managed->managed_node()->empty(); 429 return !managed->managed_node()->empty();
430 } 430 }
431 431
432 return true; 432 return true;
433 } 433 }
434 434
435 bool BookmarkContextMenuController::GetAcceleratorForCommandId(
436 int command_id,
437 ui::Accelerator* accelerator) const {
438 return false;
439 }
440
441 void BookmarkContextMenuController::BookmarkModelChanged() { 435 void BookmarkContextMenuController::BookmarkModelChanged() {
442 if (delegate_) 436 if (delegate_)
443 delegate_->CloseMenu(); 437 delegate_->CloseMenu();
444 } 438 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698