DescriptionAdd a tab helper to record the last visit date for each bookmark
The NTP on Android will display a list of recently visited bookmarks.
This CL introduces a tab helper that stores current date to the meta
data of a bookmark when the bookmark gets visited.
The code is split into a part that depends on content (living in
chrome/browser/ntp_snippets) and a platform-independent part
(living in components/ntp_snippets).
The platform independent code also provides functions to retrieve the list of most recent bookmarks.
The code for iOS, analogous to the first part, will come in another CL.
BUG=631474
Committed: https://crrev.com/9ace14b3b2c1fba4261d6edb19965f7373355c4b
Cr-Commit-Position: refs/heads/master@{#410022}
Patch Set 1 #Patch Set 2 : Marc's comments #Patch Set 3 : sky's comments #
Total comments: 21
Patch Set 4 : Marc's comments #Patch Set 5 : Only use ANDROID_JAVA_UI in tab_helpers.cc #
Total comments: 2
Patch Set 6 : Alphabetical order in tab_helpers.cc #Patch Set 7 : Rebase #
Total comments: 2
Patch Set 8 : Add GetForBrowserContextIfExists, TODO-comment for removing the old methods #Patch Set 9 : Rebased #Patch Set 10 : Use browser_context as the parameter name consistently #
Total comments: 2
Patch Set 11 : Remove unnecessary explicit #Dependent Patchsets: Messages
Total messages: 26 (8 generated)
|