summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm')
-rw-r--r--chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm b/chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm
index 3aa9906..25b2b4c 100644
--- a/chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm
+++ b/chrome/browser/cocoa/bookmark_menu_cocoa_controller.mm
@@ -21,12 +21,12 @@
// Return the a BookmarkNode that has the given id (called
// "identifier" here to avoid conflict with objc's concept of "id").
-- (BookmarkNode*)nodeForIdentifier:(int)identifier {
+- (const BookmarkNode*)nodeForIdentifier:(int)identifier {
return bridge_->GetBookmarkModel()->GetNodeByID(identifier);
}
// Open the URL of the given BookmarkNode in the current tab.
-- (void)openURLForNode:(BookmarkNode*)node {
+- (void)openURLForNode:(const BookmarkNode*)node {
Browser* browser = BrowserList::GetLastActive();
if (!browser) { // No windows open?
@@ -45,7 +45,7 @@
- (IBAction)openBookmarkMenuItem:(id)sender {
NSInteger tag = [sender tag];
int identifier = tag;
- BookmarkNode* node = [self nodeForIdentifier:identifier];
+ const BookmarkNode* node = [self nodeForIdentifier:identifier];
DCHECK(node);
if (!node)
return; // shouldn't be reached