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

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

Issue 673313003: More changes to make network settings better match extension API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Append -> Add Created 6 years, 2 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/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

Powered by Google App Engine
This is Rietveld 408576698