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

Unified Diff: chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html

Issue 8309001: Adding `content_security_policy` to a few sample extensions. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: License and whitespace. 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/devtools/network/chrome-firephp/background.html
diff --git a/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html b/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html
index 4e382a6ff14972da14f409f8c2cd9f9b30bfabad..3b12bb31d2147acee03d3ce0b9c43d8dc69a0381 100644
--- a/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html
+++ b/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html
@@ -1,18 +1,9 @@
+<!doctype html>
<html>
-<head>
-<script type="text/javascript">
-const tab_log = function(json_args) {
- var args = JSON.parse(unescape(json_args));
- console[args[0]].apply(console, Array.prototype.slice.call(args, 1));
-}
-
-chrome.extension.onRequest.addListener(function(request) {
- if (request.command !== 'sendToConsole')
- return;
- chrome.tabs.executeScript(request.tabId, {
- code: "("+ tab_log + ")('" + request.args + "');",
- });
-});
-</script>
-</head>
+ <head>
+ <title>Background Page</title>
+ <script src="./background.js" type="text/javascript"></script>
+ </head>
+ <body>
+ </body>
</html>

Powered by Google App Engine
This is Rietveld 408576698