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

Unified Diff: chrome/browser/resources/options2/chromeos/network_list.js

Issue 10834109: Consistently decorate pref values sent to the settings UI code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Browser test added. Created 8 years, 4 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/options2/chromeos/network_list.js
diff --git a/chrome/browser/resources/options2/chromeos/network_list.js b/chrome/browser/resources/options2/chromeos/network_list.js
index 23f0b7ebf6642e78db44f4ebfa471ffc4f3775d5..3946216813bc474e19c7df4ffebf098a5e0ce7e3 100644
--- a/chrome/browser/resources/options2/chromeos/network_list.js
+++ b/chrome/browser/resources/options2/chromeos/network_list.js
@@ -762,8 +762,7 @@ cr.define('options.network', function() {
var prefs = options.Preferences.getInstance();
prefs.addEventListener('cros.signed.data_roaming_enabled',
function(event) {
- enableDataRoaming_ = event.value && event.value['value'] !=
- undefined ? event.value['value'] : event.value;
+ enableDataRoaming_ = event.value.value;
});
},

Powered by Google App Engine
This is Rietveld 408576698