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

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

Issue 6174009: Tidy up <select>s in tabbed options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't anonymize 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
Index: chrome/browser/resources/options/preferences.js
diff --git a/chrome/browser/resources/options/preferences.js b/chrome/browser/resources/options/preferences.js
index 207a6f5469e0f01b2df0755a463d3288a8a80604..a9c7b05e577f46e88a9eaa506bf6c3a869342f85 100644
--- a/chrome/browser/resources/options/preferences.js
+++ b/chrome/browser/resources/options/preferences.js
@@ -63,6 +63,19 @@ cr.define('options', function() {
};
/**
+ * Sets value of a real-valued preference.
+ * and signals its changed value.
+ * @param {string} name Preference name.
+ * @param {number} value New preference value.
+ * @param {string} metric User metrics identifier.
+ */
+ Preferences.setRealPref = function(name, value, metric) {
+ var arguments = [name, String(value)];
arv (Not doing code reviews) 2011/01/13 20:51:10 rename arguments (not forwards compatible with str
+ if (metric != undefined) arguments.push(metric);
+ chrome.send('setRealPref', arguments);
+ };
+
+ /**
* Sets value of a string preference.
* and signals its changed value.
* @param {string} name Preference name.
« chrome/browser/resources/options/pref_ui.js ('K') | « 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