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

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

Issue 2672723002: [MD History] Disable Clear Browsing Data button for supervised users. (Closed)
Patch Set: fix_test Created 3 years, 10 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 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 canDeleteHistory_: {
10 type: Boolean,
11 value: loadTimeData.getBoolean('allowDeletingHistory'),
12 },
13
9 /** @type {!QueryState} */ 14 /** @type {!QueryState} */
10 queryState: Object, 15 queryState: Object,
11 16
12 /** @type {!QueryResult} */ 17 /** @type {!QueryResult} */
13 queryResult: Object, 18 queryResult: Object,
14 19
15 /** 20 /**
16 * @private {?{ 21 * @private {?{
17 * index: number, 22 * index: number,
18 * item: !HistoryEntry, 23 * item: !HistoryEntry,
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 this.closeMenu_(); 208 this.closeMenu_();
204 }, 209 },
205 210
206 /** 211 /**
207 * @return {Element} 212 * @return {Element}
208 * @private 213 * @private
209 */ 214 */
210 getSelectedList_: function() { 215 getSelectedList_: function() {
211 return this.$['infinite-list']; 216 return this.$['infinite-list'];
212 }, 217 },
213
214 /** @private */
215 canDeleteHistory_: function() {
216 return loadTimeData.getBoolean('allowDeletingHistory');
217 }
218 }); 218 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698