| Index: chrome/browser/bookmarks/bookmark_context_menu_controller.cc
|
| diff --git a/chrome/browser/bookmarks/bookmark_context_menu_controller.cc b/chrome/browser/bookmarks/bookmark_context_menu_controller.cc
|
| index 644f513c0cbb1df0a6d9a6ba368d2419afd5e13e..691a7e73f06e65de6915f5f91522d01118e483b9 100644
|
| --- a/chrome/browser/bookmarks/bookmark_context_menu_controller.cc
|
| +++ b/chrome/browser/bookmarks/bookmark_context_menu_controller.cc
|
| @@ -138,9 +138,15 @@ void BookmarkContextMenuController::ExecuteCommand(int id) {
|
| }
|
|
|
| if (selection_[0]->is_url()) {
|
| +#if defined(WEBUI_BOOKMARK_EDITOR)
|
| + Browser* browser = BrowserList::GetLastActiveWithProfile(profile_);
|
| + DCHECK(browser);
|
| + browser->OpenBookmarkManagerEditNode(selection_[0]->id());
|
| +#else
|
| BookmarkEditor::Show(parent_window_, profile_, parent_,
|
| BookmarkEditor::EditDetails(selection_[0]),
|
| BookmarkEditor::SHOW_TREE);
|
| +#endif
|
| } else {
|
| BookmarkFolderEditorController::Show(profile_, parent_window_,
|
| selection_[0], -1,
|
| @@ -165,11 +171,17 @@ void BookmarkContextMenuController::ExecuteCommand(int id) {
|
| UserMetrics::RecordAction(
|
| UserMetricsAction("BookmarkBar_ContextMenu_Add"));
|
|
|
| +#if defined(WEBUI_BOOKMARK_EDITOR)
|
| + Browser* browser = BrowserList::GetLastActiveWithProfile(profile_);
|
| + DCHECK(browser);
|
| + browser->OpenBookmarkManagerAddNodeIn(selection_[0]->id());
|
| +#else
|
| // TODO: this should honor the index from GetParentForNewNodes.
|
| BookmarkEditor::Show(
|
| parent_window_, profile_,
|
| bookmark_utils::GetParentForNewNodes(parent_, selection_, NULL),
|
| BookmarkEditor::EditDetails(), BookmarkEditor::SHOW_TREE);
|
| +#endif
|
| break;
|
| }
|
|
|
|
|