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

Unified Diff: chrome/test/data/extensions/api_test/webrequest_hosted_app/background.js

Issue 1330263002: Show hosted app requests to extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2490
Patch Set: Created 5 years, 3 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/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*']
});

Powered by Google App Engine
This is Rietveld 408576698