[Android] Make BookmarkModelObserver more convenient.
commita4eb244baaac411fe27fb2282e62a80ee20fe1ff
authorkkimlabs <kkimlabs@chromium.org>
Thu, 11 Sep 2014 03:48:01 +0000 (10 20:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Sep 2014 03:59:02 +0000 (11 03:59 +0000)
treee657b8a09ee5d3629498e5151645eae6efc168ef
parent82bf980c0c69abc54169b13d0052ec4fbbe67916
[Android] Make BookmarkModelObserver more convenient.

Often, we don't need all the  bookmarksBridge#BookmarkModelObserver
events. Especially, it's common to skip listening on extensive
bookmark changes. So make it built-in and also provide fall-back
implementations so that listeners don't have to implement all the
stub methods.

BUG=386785

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

Cr-Commit-Position: refs/heads/master@{#294318}
chrome/android/java/src/org/chromium/chrome/browser/BookmarksBridge.java
chrome/browser/android/bookmarks/bookmarks_bridge.cc
chrome/browser/android/bookmarks/bookmarks_bridge.h