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

Unified Diff: chrome/browser/resources/options/chromeos/onc_data.js

Issue 566063002: Compile chrome://settings, part 8: the final battle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_6
Patch Set: rebase Created 6 years, 3 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 cc70fd00fc25ab82677b0f75c956a39f64dc43d1..0329fb38192015500576690370931531793c06ea 100644
--- a/chrome/browser/resources/options/chromeos/onc_data.js
+++ b/chrome/browser/resources/options/chromeos/onc_data.js
@@ -11,7 +11,7 @@
cr.exportPath('cr.onc');
/**
- * @typedef {(Object|Array|string|undefined)}
+ * @typedef {(Object|Array|string|number|undefined)}
*/
cr.onc.OncValue;
@@ -154,6 +154,7 @@ cr.define('cr.onc', function() {
var source = this.getActiveValue('Source');
if (source == undefined)
return 'None';
+ assert(typeof source == 'string');
return source;
},
@@ -165,6 +166,7 @@ cr.define('cr.onc', function() {
var security = this.getActiveValue('WiFi.Security');
if (security == undefined)
return 'None';
+ assert(typeof security == 'string');
return security;
},
« no previous file with comments | « chrome/browser/resources/options/chromeos/internet_detail.js ('k') | chrome/browser/resources/options/content_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698