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

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

Issue 2133013002: AcceleratorProvider: Make GetAcceleratorForCommandId const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix overrides on Mac and Chrome OS. Created 4 years, 5 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 435 bool BookmarkContextMenuController::GetAcceleratorForCommandId(
436 int command_id, 436 int command_id,
437 ui::Accelerator* accelerator) { 437 ui::Accelerator* accelerator) const {
438 return false; 438 return false;
439 } 439 }
440 440
441 void BookmarkContextMenuController::BookmarkModelChanged() { 441 void BookmarkContextMenuController::BookmarkModelChanged() {
442 if (delegate_) 442 if (delegate_)
443 delegate_->CloseMenu(); 443 delegate_->CloseMenu();
444 } 444 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698