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

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

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.js
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.js
similarity index 69%
copy from chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html
copy to chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.js
index 4e382a6ff14972da14f409f8c2cd9f9b30bfabad..8496dcb9c52bef5adbf3e5cfd8fd2887670ccc04 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.js
@@ -1,6 +1,7 @@
-<html>
-<head>
-<script type="text/javascript">
+// Copyright (c) 2011 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.
+
const tab_log = function(json_args) {
var args = JSON.parse(unescape(json_args));
console[args[0]].apply(console, Array.prototype.slice.call(args, 1));
@@ -13,6 +14,3 @@ chrome.extension.onRequest.addListener(function(request) {
code: "("+ tab_log + ")('" + request.args + "');",
});
});
-</script>
-</head>
-</html>

Powered by Google App Engine
This is Rietveld 408576698