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

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

Issue 2280513002: MD History: promote menu button to show clear browsing data in narrow mode (Closed)
Patch Set: asdf Created 4 years, 4 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_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

Powered by Google App Engine
This is Rietveld 408576698