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

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

Issue 6335003: Small tabbed options fixes: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/resources/options/pref_ui.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/preferences.js
diff --git a/chrome/browser/resources/options/preferences.js b/chrome/browser/resources/options/preferences.js
index a9c7b05e577f46e88a9eaa506bf6c3a869342f85..1b2423370e355e29691c84248209aa0fcec4b054 100644
--- a/chrome/browser/resources/options/preferences.js
+++ b/chrome/browser/resources/options/preferences.js
@@ -44,9 +44,9 @@ cr.define('options', function() {
* @param {string} metric User metrics identifier.
*/
Preferences.setBooleanPref = function (name, value, metric) {
- var arguments = [name, value ? 'true' : 'false'];
- if (metric != undefined) arguments.push(metric);
- chrome.send('setBooleanPref', arguments);
+ var argumentList = [name, value ? 'true' : 'false'];
+ if (metric != undefined) argumentList.push(metric);
+ chrome.send('setBooleanPref', argumentList);
};
/**
@@ -57,9 +57,9 @@ cr.define('options', function() {
* @param {string} metric User metrics identifier.
*/
Preferences.setIntegerPref = function(name, value, metric) {
- var arguments = [name, String(value)];
- if (metric != undefined) arguments.push(metric);
- chrome.send('setIntegerPref', arguments);
+ var argumentList = [name, String(value)];
+ if (metric != undefined) argumentList.push(metric);
+ chrome.send('setIntegerPref', argumentList);
};
/**
@@ -70,9 +70,9 @@ cr.define('options', function() {
* @param {string} metric User metrics identifier.
*/
Preferences.setRealPref = function(name, value, metric) {
- var arguments = [name, String(value)];
- if (metric != undefined) arguments.push(metric);
- chrome.send('setRealPref', arguments);
+ var argumentList = [name, String(value)];
+ if (metric != undefined) argumentList.push(metric);
+ chrome.send('setRealPref', argumentList);
};
/**
@@ -83,9 +83,9 @@ cr.define('options', function() {
* @param {string} metric User metrics identifier.
*/
Preferences.setStringPref = function(name, value, metric) {
- var arguments = [name, value];
- if (metric != undefined) arguments.push(metric);
- chrome.send('setStringPref', arguments);
+ var argumentList = [name, value];
+ if (metric != undefined) argumentList.push(metric);
+ chrome.send('setStringPref', argumentList);
};
/**
@@ -96,9 +96,9 @@ cr.define('options', function() {
* @param {string} metric User metrics identifier.
*/
Preferences.setObjectPref = function(name, value, metric) {
- var arguments = [name, JSON.stringify(value)];
- if (metric != undefined) arguments.push(metric);
- chrome.send('setObjectPref', arguments);
+ var argumentList = [name, JSON.stringify(value)];
+ if (metric != undefined) argumentList.push(metric);
+ chrome.send('setObjectPref', argumentList);
};
/**
@@ -107,9 +107,9 @@ cr.define('options', function() {
* @param {string} metric User metrics identifier.
*/
Preferences.clearPref = function(name, metric) {
- var arguments = [name];
- if (metric != undefined) arguments.push(metric);
- chrome.send('clearPref', arguments);
+ var argumentList = [name];
+ if (metric != undefined) argumentList.push(metric);
+ chrome.send('clearPref', argumentList);
};
Preferences.prototype = {
« no previous file with comments | « chrome/browser/resources/options/pref_ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698