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

Unified Diff: chrome/browser/resources/options/chromeos/onc_data.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/chromeos/onc_data.js
diff --git a/chrome/browser/resources/options/chromeos/onc_data.js b/chrome/browser/resources/options/chromeos/onc_data.js
index 8114dbd2a33e27bcc47b7d29b003c09d78462ce6..23bc0039f8cef4c59d39e11893fdc42b05f18b65 100644
--- a/chrome/browser/resources/options/chromeos/onc_data.js
+++ b/chrome/browser/resources/options/chromeos/onc_data.js
@@ -22,7 +22,9 @@ cr.define('cr.onc', function() {
OncData.prototype = {
/** @return {string} The GUID of the network. */
- guid: function() { return this.data_['GUID']; },
+ guid: function() {
+ return this.data_['GUID'];
+ },
/**
* Returns either a managed property dictionary or an unmanaged value.
@@ -63,8 +65,7 @@ cr.define('cr.onc', function() {
data = data[keyComponent];
key = key.substr(index + 1);
}
- if (!(key in data) ||
- (typeof data[key] != 'object') ||
+ if (!(key in data) || (typeof data[key] != 'object') ||
(!('Active' in data[key]) && !('Effective' in data[key]))) {
data[key] = value;
} else {
@@ -92,7 +93,7 @@ cr.define('cr.onc', function() {
return property['Active'];
// If no Active value is defined, return the effective value if present.
var effective = this.getEffectiveValueFromProperty_(
- /** @type {Object} */(property));
+ /** @type {Object} */ (property));
if (effective != undefined)
return effective;
// Otherwise this is an Object but not a Managed one.
@@ -189,7 +190,5 @@ cr.define('cr.onc', function() {
}
};
- return {
- OncData: OncData
- };
+ return {OncData: OncData};
});

Powered by Google App Engine
This is Rietveld 408576698