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

Unified Diff: chrome/browser/resources/settings/internet_page/internet_page.js

Issue 2914053002: Settings: Network: Closure cleanup (Closed)
Patch Set: . Created 3 years, 7 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/settings/internet_page/internet_page.js
diff --git a/chrome/browser/resources/settings/internet_page/internet_page.js b/chrome/browser/resources/settings/internet_page/internet_page.js
index 22cd5ee16de8067fbb2fbf425c18537161eebd55..45d9bee30c5bdc2b46ba047f3fecf19d756f7b6d 100644
--- a/chrome/browser/resources/settings/internet_page/internet_page.js
+++ b/chrome/browser/resources/settings/internet_page/internet_page.js
@@ -30,7 +30,7 @@ Polymer({
/**
* The device state for each network device type. Set by network-summary.
- * @type {!Object<chrome.networkingPrivate.DeviceStateProperties>|undefined}
+ * @type {!Object<!CrOnc.DeviceStateProperties>|undefined}
* @private
*/
deviceStates: {
@@ -392,13 +392,12 @@ Polymer({
},
/**
- * @param {!chrome.networkingPrivate.DeviceStateProperties} deviceState
+ * @param {!CrOnc.DeviceStateProperties} deviceState
* @return {boolean}
* @private
*/
deviceIsEnabled_: function(deviceState) {
- return !!deviceState &&
- deviceState.State == chrome.networkingPrivate.DeviceStateType.ENABLED;
+ return !!deviceState && deviceState.State == CrOnc.DeviceState.ENABLED;
},
/**
@@ -449,7 +448,7 @@ Polymer({
}
console.error(
'Unexpected networkingPrivate.startConnect error: ' + message +
- ' For: ' + properties.GUID);
+ ' For: ' + properties.GUID);
}
});
},

Powered by Google App Engine
This is Rietveld 408576698