OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |