Refactor the way enhanced bookmark gets large icons
commitf5e14e5fc4207c9df6da0ad17c180e4aeafabd50
authorianwen <ianwen@chromium.org>
Fri, 24 Jul 2015 22:50:03 +0000 (24 15:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 24 Jul 2015 22:50:52 +0000 (24 22:50 +0000)
treec783418748a3a65bb8ab2d1b1a519bc05a01931e
parentf580a92a1fff8d909ed301a1286cf510dabb7921
Refactor the way enhanced bookmark gets large icons

A LargeIconBridge will be created for every bookmark item shown on
screen, which is not necessary. Also previously we did not call
LargeIconBridge#destroy(), and it might cause memory leak issues.

This CL moves the icon retrieving logic to enhanced bookmark model,
a more approriate place for data query.

BUG=513509

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

Cr-Commit-Position: refs/heads/master@{#340362}
chrome/android/java/src/org/chromium/chrome/browser/enhanced_bookmarks/EnhancedBookmarksBridge.java
chrome/android/java/src/org/chromium/chrome/browser/enhanced_bookmarks/EnhancedBookmarksModel.java
chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkBookmarkRow.java
chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkFolderRow.java
chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkRow.java