Index: chrome/browser/resources/md_history/history_toolbar.js |
diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js |
index d346317e913f5fc1cb10b098c0b94610f010e0a4..c5eeb695dea52dea04d48c4fba4735630a6ca39d 100644 |
--- a/chrome/browser/resources/md_history/history_toolbar.js |
+++ b/chrome/browser/resources/md_history/history_toolbar.js |
@@ -61,6 +61,15 @@ Polymer({ |
// The end time of the query range. |
queryEndTime: String, |
+ |
+ // Whether to show the menu promo (a tooltip that points at the menu button |
+ // in narrow mode). |
+ showMenuPromo_: { |
+ type: Boolean, |
+ value: function() { |
+ return loadTimeData.getBoolean('showMenuPromo'); |
+ }, |
+ }, |
}, |
/** |
@@ -88,6 +97,12 @@ Polymer({ |
searchField.setValue(search); |
}, |
+ /** @private */ |
+ onMenuPromoShown_: function() { |
+ this.showMenuPromo_ = false; |
+ md_history.BrowserService.getInstance().menuPromoShown(); |
tsergeant
2016/08/25 04:51:00
Looks like you'll need to add browser_service as a
Dan Beam
2016/09/09 03:12:08
Done.
|
+ }, |
+ |
/** |
* @param {!CustomEvent} event |
* @private |