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

Unified Diff: chrome/browser/resources/settings/site_settings/protocol_handlers.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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/settings/site_settings/protocol_handlers.js
diff --git a/chrome/browser/resources/settings/site_settings/protocol_handlers.js b/chrome/browser/resources/settings/site_settings/protocol_handlers.js
index 43572b8bdf07f3bfb69f707215789c57102d106a..a18b74e61e5043a5bcb1dd21175586a619e7f416 100644
--- a/chrome/browser/resources/settings/site_settings/protocol_handlers.js
+++ b/chrome/browser/resources/settings/site_settings/protocol_handlers.js
@@ -58,11 +58,12 @@ Polymer({
},
ready: function() {
- this.addWebUIListener('setHandlersEnabled',
- this.setHandlersEnabled_.bind(this));
- this.addWebUIListener('setProtocolHandlers',
- this.setProtocolHandlers_.bind(this));
- this.addWebUIListener('setIgnoredProtocolHandlers',
+ this.addWebUIListener(
+ 'setHandlersEnabled', this.setHandlersEnabled_.bind(this));
+ this.addWebUIListener(
+ 'setProtocolHandlers', this.setProtocolHandlers_.bind(this));
+ this.addWebUIListener(
+ 'setIgnoredProtocolHandlers',
this.setIgnoredProtocolHandlers_.bind(this));
this.browserProxy.observeProtocolHandlers();
},
@@ -73,8 +74,8 @@ Polymer({
* @private
*/
computeHandlersDescription_: function() {
- var setting = this.categoryEnabled ?
- settings.PermissionValues.ALLOW : settings.PermissionValues.BLOCK;
+ var setting = this.categoryEnabled ? settings.PermissionValues.ALLOW :
+ settings.PermissionValues.BLOCK;
return this.computeCategoryDesc(
settings.ContentSettingsTypes.PROTOCOL_HANDLERS, setting, true);
},
@@ -157,8 +158,9 @@ Polymer({
* @return {boolean} if actionMenuModel_ is default handler of its protocol.
*/
isModelDefault_: function() {
- return !!this.actionMenuModel_ && (this.actionMenuModel_.index ==
- this.actionMenuModel_.protocol.default_handler);
+ return !!this.actionMenuModel_ &&
+ (this.actionMenuModel_.index ==
+ this.actionMenuModel_.protocol.default_handler);
},
/**
@@ -169,8 +171,8 @@ Polymer({
*/
showMenu_: function(event) {
this.actionMenuModel_ = event.model;
- /** @type {!CrActionMenuElement} */ (
- this.$$('dialog[is=cr-action-menu]')).showAt(
+ /** @type {!CrActionMenuElement} */ (this.$$('dialog[is=cr-action-menu]'))
+ .showAt(
/** @type {!Element} */ (
Polymer.dom(/** @type {!Event} */ (event)).localTarget));
}

Powered by Google App Engine
This is Rietveld 408576698