| Index: chrome/browser/cocoa/bookmark_bar_folder_controller.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/bookmark_bar_folder_controller.mm (revision 49997)
|
| +++ chrome/browser/cocoa/bookmark_bar_folder_controller.mm (working copy)
|
| @@ -1025,23 +1025,8 @@
|
| return [self dragBookmark:sourceNode to:point copy:copy];
|
| }
|
|
|
| -// clang hack to work around http://llvm.org/bugs/show_bug.cgi?id=7386
|
| // TODO(mrossetti,jrg): Identical to the same function in BookmarkBarController.
|
| // http://crbug.com/35966
|
| -- (std::vector<const BookmarkNode*>)retrieveBookmarkDragDataNodes {
|
| - std::vector<const BookmarkNode*> dragDataNodes;
|
| - BookmarkDragData dragData;
|
| - if(dragData.ReadFromDragClipboard()) {
|
| - BookmarkModel* bookmarkModel = [self bookmarkModel];
|
| - Profile* profile = bookmarkModel->profile();
|
| - std::vector<const BookmarkNode*> nodes(dragData.GetNodes(profile));
|
| - dragDataNodes.assign(nodes.begin(), nodes.end());
|
| - }
|
| - return dragDataNodes;
|
| -}
|
| -
|
| -// TODO(mrossetti,jrg): Identical to the same function in BookmarkBarController.
|
| -// http://crbug.com/35966
|
| - (BOOL)dragBookmarkData:(id<NSDraggingInfo>)info {
|
| BOOL dragged = NO;
|
| std::vector<const BookmarkNode*> nodes([self retrieveBookmarkDragDataNodes]);
|
| @@ -1057,6 +1042,20 @@
|
| return dragged;
|
| }
|
|
|
| +// TODO(mrossetti,jrg): Identical to the same function in BookmarkBarController.
|
| +// http://crbug.com/35966
|
| +- (std::vector<const BookmarkNode*>)retrieveBookmarkDragDataNodes {
|
| + std::vector<const BookmarkNode*> dragDataNodes;
|
| + BookmarkDragData dragData;
|
| + if(dragData.ReadFromDragClipboard()) {
|
| + BookmarkModel* bookmarkModel = [self bookmarkModel];
|
| + Profile* profile = bookmarkModel->profile();
|
| + std::vector<const BookmarkNode*> nodes(dragData.GetNodes(profile));
|
| + dragDataNodes.assign(nodes.begin(), nodes.end());
|
| + }
|
| + return dragDataNodes;
|
| +}
|
| +
|
| // Return YES if we should show the drop indicator, else NO.
|
| // TODO(jrg): ARGH code dup!
|
| // http://crbug.com/35966
|
|
|