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

Side by Side Diff: chrome/browser/resources/settings/site_settings/site_list.js

Issue 2834433002: MD Settings: ESLint --fix output, WIP. (Closed)
Patch Set: Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'site-list' shows a list of Allowed and Blocked sites for a given 7 * 'site-list' shows a list of Allowed and Blocked sites for a given
8 * category. 8 * category.
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 if (this.allSites) { 234 if (this.allSites) {
235 this.getAllSitesList_().then(function(lists) { 235 this.getAllSitesList_().then(function(lists) {
236 this.processExceptions_(lists); 236 this.processExceptions_(lists);
237 this.closeActionMenu_(); 237 this.closeActionMenu_();
238 }.bind(this)); 238 }.bind(this));
239 } else { 239 } else {
240 this.browserProxy_.getExceptionList(this.category).then( 240 this.browserProxy_.getExceptionList(this.category).then(
241 function(exceptionList) { 241 function(exceptionList) {
242 this.processExceptions_([exceptionList]); 242 this.processExceptions_([exceptionList]);
243 this.closeActionMenu_(); 243 this.closeActionMenu_();
244 }.bind(this)); 244 }.bind(this));
245 } 245 }
246 }, 246 },
247 247
248 /** 248 /**
249 * Process the exception list returned from the native layer. 249 * Process the exception list returned from the native layer.
250 * @param {!Array<!Array<RawSiteException>>} data List of sites (exceptions) 250 * @param {!Array<!Array<RawSiteException>>} data List of sites (exceptions)
251 * to process. 251 * to process.
252 * @private 252 * @private
253 */ 253 */
254 processExceptions_: function(data) { 254 processExceptions_: function(data) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 /** @private */ 494 /** @private */
495 closeActionMenu_: function() { 495 closeActionMenu_: function() {
496 this.actionMenuSite_ = null; 496 this.actionMenuSite_ = null;
497 this.activeDialogAnchor_ = null; 497 this.activeDialogAnchor_ = null;
498 var actionMenu = /** @type {!CrActionMenuElement} */ ( 498 var actionMenu = /** @type {!CrActionMenuElement} */ (
499 this.$$('dialog[is=cr-action-menu]')); 499 this.$$('dialog[is=cr-action-menu]'));
500 if (actionMenu.open) 500 if (actionMenu.open)
501 actionMenu.close(); 501 actionMenu.close();
502 }, 502 },
503 }); 503 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698