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

Unified Diff: chrome/common/extensions/docs/examples/api/transientPage/basic/background.js

Issue 10257006: Move Declarative Web Request API out of experimental and make it a feature (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/common/extensions/docs/examples/api/transientPage/basic/background.js
diff --git a/chrome/common/extensions/docs/examples/api/transientPage/basic/background.js b/chrome/common/extensions/docs/examples/api/transientPage/basic/background.js
index 48c5e0161145059e5dffcbadd1e3c5a238211602..c1b70777eb7c7506dcce0fc133a0b3c7a66c76ef 100644
--- a/chrome/common/extensions/docs/examples/api/transientPage/basic/background.js
+++ b/chrome/common/extensions/docs/examples/api/transientPage/basic/background.js
@@ -26,8 +26,8 @@ chrome.experimental.runtime.onInstalled.addListener(function() {
localStorage.counter = 1;
// Register a webRequest rule to redirect bing to google.
- var wr = chrome.experimental.webRequest;
- chrome.experimental.webRequest.onRequest.addRules([{
+ var wr = chrome.declarativeWebRequest;
+ chrome.declarativeWebRequest.onRequest.addRules([{
id: "0",
conditions: [new wr.RequestMatcher({url: {hostSuffix: "bing.com"}})],
actions: [new wr.RedirectRequest({redirectUrl: "http://google.com"})]

Powered by Google App Engine
This is Rietveld 408576698