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

Unified Diff: chrome/test/data/extensions/networking_config_delegate/background.js

Issue 2565823002: Reland: Add test for system tray network menu icon for extension-controlled networks (Closed)
Patch Set: fix use-after-free Created 4 years 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/data/extensions/networking_config_delegate/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/networking_config_delegate/background.js
diff --git a/chrome/test/data/extensions/networking_config_delegate/background.js b/chrome/test/data/extensions/networking_config_delegate/background.js
new file mode 100644
index 0000000000000000000000000000000000000000..e996a3922d2a953eeaf71f2d91e1229e6adef27d
--- /dev/null
+++ b/chrome/test/data/extensions/networking_config_delegate/background.js
@@ -0,0 +1,9 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Register this extension as the network handler for wifi1.
+chrome.networking.config.setNetworkFilter([{Type: 'WiFi', SSID: 'wifi1'}],
+ function() {
+ chrome.test.sendMessage('done');
+ });
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/data/extensions/networking_config_delegate/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698