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

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

Issue 2984843003: MD Settings: Convert all usages of .bind(this) to use ES6 arrow function. (Closed)
Patch Set: Resolve conflicts. Created 3 years, 5 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/network_summary.js
diff --git a/chrome/browser/resources/settings/internet_page/network_summary.js b/chrome/browser/resources/settings/internet_page/network_summary.js
index 3f83c7af26a3fdd7ec9f4de73054f27140e4f933..a1c6dea26650871ad5f403c4d57ace2a99ec6530 100644
--- a/chrome/browser/resources/settings/internet_page/network_summary.js
+++ b/chrome/browser/resources/settings/internet_page/network_summary.js
@@ -223,10 +223,10 @@ Polymer({
*/
getNetworkLists_: function() {
// First get the device states.
- this.networkingPrivate.getDeviceStates(function(deviceStates) {
+ this.networkingPrivate.getDeviceStates(deviceStates => {
// Second get the network states.
this.getNetworkStates_(deviceStates);
- }.bind(this));
+ });
},
/**
@@ -242,9 +242,9 @@ Polymer({
visible: true,
configured: false
};
- this.networkingPrivate.getNetworks(filter, function(networkStates) {
+ this.networkingPrivate.getNetworks(filter, networkStates => {
this.updateNetworkStates_(networkStates, deviceStates);
- }.bind(this));
+ });
},
/**

Powered by Google App Engine
This is Rietveld 408576698