Index: chrome/browser/resources/options/chromeos/preferred_networks.js |
diff --git a/chrome/browser/resources/options/chromeos/preferred_networks.js b/chrome/browser/resources/options/chromeos/preferred_networks.js |
index 2234733329fdbf26ab933d775e6f8dc563b2d6b6..8dd24ecf06c69157a01eeebd294107b369855d19 100644 |
--- a/chrome/browser/resources/options/chromeos/preferred_networks.js |
+++ b/chrome/browser/resources/options/chromeos/preferred_networks.js |
@@ -126,11 +126,9 @@ cr.define('options', function() { |
deleteItemAtIndex: function(index) { |
var item = this.dataModel.item(index); |
if (item) { |
- // Inform the network library that we are forgetting this network. |
- chrome.send('networkCommand', |
- [item.Type, |
- item.servicePath, |
- 'forget']); |
+ // TODO(stevenjb): Add removeNetwork to chrome.networkingPrivate and |
+ // use that here. |
+ chrome.send('removeNetwork', [item.servicePath]); |
} |
this.dataModel.splice(index, 1); |
// Invalidate the list since it has a stale cache after a splice |