| Index: chrome/browser/resources/md_bookmarks/dnd_manager.js
|
| diff --git a/chrome/browser/resources/md_bookmarks/dnd_manager.js b/chrome/browser/resources/md_bookmarks/dnd_manager.js
|
| index c1a73839400886e8906400459932b78e08739b04..40d3be7fddf7c3ae99c49aef00c61dd22db9bded 100644
|
| --- a/chrome/browser/resources/md_bookmarks/dnd_manager.js
|
| +++ b/chrome/browser/resources/md_bookmarks/dnd_manager.js
|
| @@ -352,10 +352,17 @@ cr.define('bookmarks', function() {
|
| e.preventDefault();
|
|
|
| var dropInfo = this.calculateDropInfo_(this.dropDestination_);
|
| - if (dropInfo.index != -1)
|
| - chrome.bookmarkManagerPrivate.drop(dropInfo.parentId, dropInfo.index);
|
| - else
|
| - chrome.bookmarkManagerPrivate.drop(dropInfo.parentId);
|
| + var index = dropInfo.index != -1 ? dropInfo.index : undefined;
|
| + var shouldHighlight = isBookmarkItem(this.dropDestination_.element) ||
|
| + isBookmarkList(this.dropDestination_.element);
|
| +
|
| + if (shouldHighlight)
|
| + bookmarks.ApiListener.trackUpdatedItems();
|
| +
|
| + chrome.bookmarkManagerPrivate.drop(
|
| + dropInfo.parentId, index,
|
| + shouldHighlight ? bookmarks.ApiListener.highlightUpdatedItems :
|
| + undefined);
|
| }
|
|
|
| this.dropDestination_ = null;
|
|
|