Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm |
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm |
index 69fb3b67c42bdc627a941db605785971d648ee73..ba87f450f2d61c34fa0dcd84ba932649acd85d9d 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm |
@@ -692,6 +692,9 @@ void RecordAppLaunch(Profile* profile, GURL url) { |
return; |
} |
+#if defined(WEBUI_BOOKMARK_EDITOR) |
+ browser_->OpenBookmarkManagerEditNode(node->id()); |
+#else |
// There is no real need to jump to a platform-common routine at |
// this point (which just jumps back to objc) other than consistency |
// across platforms. |
@@ -704,6 +707,7 @@ void RecordAppLaunch(Profile* profile, GURL url) { |
node->parent(), |
BookmarkEditor::EditDetails(node), |
BookmarkEditor::SHOW_TREE); |
+#endif |
} |
- (IBAction)cutBookmark:(id)sender { |
@@ -781,11 +785,15 @@ void RecordAppLaunch(Profile* profile, GURL url) { |
const BookmarkNode* parent = [self nodeFromMenuItem:sender]; |
if (!parent) |
parent = bookmarkModel_->bookmark_bar_node(); |
+#if defined(WEBUI_BOOKMARK_EDITOR) |
+ browser_->OpenBookmarkManagerAddNodeIn(parent->id()); |
+#else |
BookmarkEditor::Show([[self view] window], |
browser_->profile(), |
parent, |
BookmarkEditor::EditDetails(), |
BookmarkEditor::SHOW_TREE); |
+#endif |
} |
// Might be called from the context menu over the bar OR over a |