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

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

Issue 1767973002: Closure: convert md_history to v2 GYP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 9 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
« no previous file with comments | « chrome/browser/resources/md_history/history_list.html ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/history_list.js
diff --git a/chrome/browser/resources/md_history/history_list.js b/chrome/browser/resources/md_history/history_list.js
index 76caf441f18cd328bf585589e73a3d82f28046e3..8aaea2ecfd71df35f2e52f25da17915b4c22fb97 100644
--- a/chrome/browser/resources/md_history/history_list.js
+++ b/chrome/browser/resources/md_history/history_list.js
@@ -46,7 +46,7 @@ Polymer({
* @private
*/
closeMenu_: function() {
- this.$.sharedMenu.closeMenu();
+ /** @type {CrSharedMenuElement} */(this.$.sharedMenu).closeMenu();
},
/**
@@ -63,7 +63,8 @@ Polymer({
* @private
*/
toggleMenu_: function(e) {
- this.$.sharedMenu.toggleMenu(e.detail.target);
+ var target = e.detail.target;
+ /** @type {CrSharedMenuElement} */(this.$.sharedMenu).toggleMenu(target);
},
/**
@@ -86,9 +87,8 @@ Polymer({
this.searchTerm = searchTerm;
}
- if (historyResults.length == 0) {
+ if (historyResults.length == 0)
return;
- }
// Creates a copy of historyResults to prevent accidentally modifying this
// field.
« no previous file with comments | « chrome/browser/resources/md_history/history_list.html ('k') | chrome/browser/ui/webui/md_history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698