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

Unified Diff: chrome/browser/resources/options/preferences.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/preferences.js
diff --git a/chrome/browser/resources/options/preferences.js b/chrome/browser/resources/options/preferences.js
index c7ea93d37ea9cc257489a6092805014377743608..cfb7f22b0d5347bc18e541145f852f3ccf407b42 100644
--- a/chrome/browser/resources/options/preferences.js
+++ b/chrome/browser/resources/options/preferences.js
@@ -33,7 +33,8 @@ cr.define('options', function() {
}
var argumentList = [name, Boolean(value)];
- if (opt_metric != undefined) argumentList.push(opt_metric);
+ if (opt_metric != undefined)
+ argumentList.push(opt_metric);
chrome.send('setBooleanPref', argumentList);
};
@@ -51,7 +52,8 @@ cr.define('options', function() {
}
var argumentList = [name, Number(value)];
- if (metric != undefined) argumentList.push(metric);
+ if (metric != undefined)
+ argumentList.push(metric);
chrome.send('setIntegerPref', argumentList);
};
@@ -69,7 +71,8 @@ cr.define('options', function() {
}
var argumentList = [name, Number(value)];
- if (metric != undefined) argumentList.push(metric);
+ if (metric != undefined)
+ argumentList.push(metric);
chrome.send('setDoublePref', argumentList);
};
@@ -87,7 +90,8 @@ cr.define('options', function() {
}
var argumentList = [name, String(value)];
- if (metric != undefined) argumentList.push(metric);
+ if (metric != undefined)
+ argumentList.push(metric);
chrome.send('setStringPref', argumentList);
};
@@ -106,7 +110,8 @@ cr.define('options', function() {
}
var argumentList = [name, String(value)];
- if (metric != undefined) argumentList.push(metric);
+ if (metric != undefined)
+ argumentList.push(metric);
chrome.send('setURLPref', argumentList);
};
@@ -124,7 +129,8 @@ cr.define('options', function() {
}
var argumentList = [name, JSON.stringify(value)];
- if (metric != undefined) argumentList.push(metric);
+ if (metric != undefined)
+ argumentList.push(metric);
chrome.send('setListPref', argumentList);
};
@@ -142,7 +148,8 @@ cr.define('options', function() {
}
var argumentList = [name];
- if (opt_metric != undefined) argumentList.push(opt_metric);
+ if (opt_metric != undefined)
+ argumentList.push(opt_metric);
chrome.send('clearPref', argumentList);
};
@@ -331,8 +338,6 @@ cr.define('options', function() {
};
// Export
- return {
- Preferences: Preferences
- };
+ return {Preferences: Preferences};
});

Powered by Google App Engine
This is Rietveld 408576698