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

Unified Diff: chrome/test/data/extensions/api_test/webrequest/framework.js

Issue 2455393002: PS - Adjusting webRequest API for use in Public Sessions (Closed)
Patch Set: Updated code Created 4 years, 1 month 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/framework.js
diff --git a/chrome/test/data/extensions/api_test/webrequest/framework.js b/chrome/test/data/extensions/api_test/webrequest/framework.js
index 461ee561896b5e2b930c0f9bc90c3a00faea25f4..75b0e8418dd9410ffa8813f8a749328f64235922 100644
--- a/chrome/test/data/extensions/api_test/webrequest/framework.js
+++ b/chrome/test/data/extensions/api_test/webrequest/framework.js
@@ -100,7 +100,6 @@ function expect(data, order, filter, extraInfoSpec) {
tabAndFrameUrls = {}; // Maps "{tabId}-{frameId}" to the URL of the frame.
frameIdMap = {"-1": -1, "0": 0};
removeListeners();
- resetDeclarativeRules();
initListeners(filter || {urls: ["<all_urls>"]}, extraInfoSpec || []);
// Fill in default values.
for (var i = 0; i < expectedEventData.length; ++i) {
@@ -416,7 +415,3 @@ function removeListeners() {
helper('onCompleted');
helper('onErrorOccurred');
}
-
-function resetDeclarativeRules() {
- chrome.declarativeWebRequest.onRequest.removeRules();
-}

Powered by Google App Engine
This is Rietveld 408576698