Index: chrome/test/data/extensions/api_test/webrequest_hosted_app/background.js |
diff --git a/chrome/test/data/extensions/api_test/file_system/request_file_system_not_chromeos/background.js b/chrome/test/data/extensions/api_test/webrequest_hosted_app/background.js |
similarity index 51% |
copy from chrome/test/data/extensions/api_test/file_system/request_file_system_not_chromeos/background.js |
copy to chrome/test/data/extensions/api_test/webrequest_hosted_app/background.js |
index 4de17e4f640fb2d88e6e8dc0396e6eae06412811..7f2ee7ec2129beef2a978519fbd916f92931d58b 100644 |
--- a/chrome/test/data/extensions/api_test/file_system/request_file_system_not_chromeos/background.js |
+++ b/chrome/test/data/extensions/api_test/webrequest_hosted_app/background.js |
@@ -1,7 +1,8 @@ |
// Copyright 2015 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. |
- |
-chrome.app.runtime.onLaunched.addListener(function() { |
- chrome.app.window.create('test.html'); |
+chrome.webRequest.onBeforeRequest.addListener(function(details) { |
+ chrome.test.sendMessage(details.type); |
+}, { |
+ urls: ['*://*/*webrequest_hosted_app*'] |
not at google - send to devlin
2015/09/08 16:09:20
I don't know the webrequest API very well... why w
robwu
2015/09/08 17:19:48
Because the files are served at http://localhost:P
|
}); |