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

Side by Side Diff: chrome/browser/resources/md_history/list_container.js

Issue 2478773002: [MD History] Disable menu button when history deletion is disabled. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'history-list-container', 6 is: 'history-list-container',
7 7
8 properties: { 8 properties: {
9 // The path of the currently selected page. 9 // The path of the currently selected page.
10 selectedPage_: String, 10 selectedPage_: String,
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 272 }
273 }.bind(this)); 273 }.bind(this));
274 menu.closeMenu(); 274 menu.closeMenu();
275 }, 275 },
276 276
277 /** 277 /**
278 * @return {HTMLElement} 278 * @return {HTMLElement}
279 * @private 279 * @private
280 */ 280 */
281 getSelectedList_: function() { return this.$.content.selectedItem; }, 281 getSelectedList_: function() { return this.$.content.selectedItem; },
282
283 /** @private */
284 canDeleteHistory_: function() {
285 return loadTimeData.getBoolean('allowDeletingHistory');
286 }
282 }); 287 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698