Fix bug that AddBookmarks returns partner bookmark node
commit63aa2f732a03ce5f1a930179609d7a4573f289f6
authorianwen <ianwen@chromium.org>
Tue, 24 Feb 2015 17:51:22 +0000 (24 09:51 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 24 Feb 2015 17:52:27 +0000 (24 17:52 +0000)
tree2346f9e942baef4824d507bd150a0af4fa1c23be
parent2c1e66020cc04144223bb1814d8d2810e63233d2
Fix bug that AddBookmarks returns partner bookmark node

BookmarkNode::getType() and BookmarkID::Type are not the same things.
The previous implementation confused them, which caused a bug that
adding a folder will return a partner bookmark.

BUG=458703

Review URL: https://codereview.chromium.org/950033002

Cr-Commit-Position: refs/heads/master@{#317820}
chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.cc