Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(791)

Unified Diff: chrome/browser/resources/md_history/history_item.js

Issue 2962133002: MD History: Update timestamp hover text when item changes (Closed)
Patch Set: Be lazy again Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_item.js
diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js
index 646493be7fa3e7b4700951e706ef964ce4eb3638..f34bd16df3f07dadbdbe5333ed55ad3ec0539034 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -86,7 +86,7 @@ cr.define('md_history', function() {
// from the history backend, as well as fields computed by history-list.
item: {
type: Object,
- observer: 'showIcon_',
+ observer: 'itemChanged_',
},
selected: {
@@ -303,8 +303,9 @@ cr.define('md_history', function() {
* Set the favicon image, based on the URL of the history item.
* @private
*/
- showIcon_: function() {
+ itemChanged_: function() {
this.$.icon.style.backgroundImage = cr.icon.getFavicon(this.item.url);
+ this.listen(this.$['time-accessed'], 'mouseover', 'addTimeTitle_');
},
/**
« no previous file with comments | « chrome/browser/resources/md_history/history_item.html ('k') | chrome/test/data/webui/md_history/history_item_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698