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

Unified Diff: chrome/common/extensions/docs/examples/api/webNavigation/basic/background.html

Issue 8318001: Adding `content_security_policy` to a few sample extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Docs. Zips. Created 9 years, 2 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/webNavigation/basic/background.html
diff --git a/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.html b/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.html
index 8fd010d6b803182f214a7932de0b4abb73916da9..c66024b90b0e14a56c1ff0b3d7d2ca97a1c3f4a9 100644
--- a/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.html
+++ b/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.html
@@ -9,22 +9,7 @@
<title>WebNavigation Sample Extension Background Page</title>
</head>
<body>
- <script src='./navigation_collector.js'></script>
- <script>
- var nav = new NavigationCollector();
-
- var eventList = ['onBeforeNavigate', 'onCreatedNavigationTarget',
- 'onCommitted', 'onCompleted', 'onDOMContentLoaded',
- 'onErrorOccurred', 'onReferenceFragmentUpdated'];
-
- eventList.forEach(function(e) {
- chrome.webNavigation[e].addListener(function(data) {
- if (typeof data)
- console.log(chrome.i18n.getMessage('inHandler'), e, data);
- else
- console.error(chrome.i18n.getMessage('inHandlerError'), e);
- });
- });
- </script>
+ <script src='navigation_collector.js'></script>
+ <script src='background.js'></script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698