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

Unified Diff: chrome/browser/resources/options/controlled_setting.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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/options/controlled_setting.js
diff --git a/chrome/browser/resources/options/controlled_setting.js b/chrome/browser/resources/options/controlled_setting.js
index 7b383215ac49147f1fef4c4c76a3829bf6f12717..f7a7a5f91ae4d28f32399951c8985bf826025f56 100644
--- a/chrome/browser/resources/options/controlled_setting.js
+++ b/chrome/browser/resources/options/controlled_setting.js
@@ -77,7 +77,8 @@ cr.define('options', function() {
} else if (event.value.recommendedValue != undefined) {
this.controlledBy =
!this.value || String(event.value.recommendedValue) == this.value ?
- 'hasRecommendation' : null;
+ 'hasRecommendation' :
+ null;
} else {
this.controlledBy = null;
}
@@ -185,8 +186,9 @@ cr.define('options', function() {
var disableButton = extensionContainer.querySelector(
'.controlled-setting-bubble-extension-disable-button');
- disableButton.onclick =
- function() { chrome.send('disableExtension', [extensionId]); };
+ disableButton.onclick = function() {
+ chrome.send('disableExtension', [extensionId]);
+ };
content.appendChild(extensionContainer);
}
return content;
@@ -205,8 +207,8 @@ cr.define('options', function() {
* cancels the dialog instead, the changes are rolled back in the settings UI
* and never committed.
*/
- cr.defineProperty(ControlledSettingIndicator, 'dialogPref',
- cr.PropertyKind.BOOL_ATTR);
+ cr.defineProperty(
+ ControlledSettingIndicator, 'dialogPref', cr.PropertyKind.BOOL_ATTR);
/**
* The value of the associated preference that the indicator represents. If
@@ -216,11 +218,8 @@ cr.define('options', function() {
* This allows multiple indicators to be created for a set of radio buttons,
* ensuring that only one of them is visible at a time.
*/
- cr.defineProperty(ControlledSettingIndicator, 'value',
- cr.PropertyKind.ATTR);
+ cr.defineProperty(ControlledSettingIndicator, 'value', cr.PropertyKind.ATTR);
// Export.
- return {
- ControlledSettingIndicator: ControlledSettingIndicator
- };
+ return {ControlledSettingIndicator: ControlledSettingIndicator};
});

Powered by Google App Engine
This is Rietveld 408576698