Index: chrome/test/data/extensions/trigger_actions/page_action/background.html |
=================================================================== |
--- chrome/test/data/extensions/trigger_actions/page_action/background.html (revision 112827) |
+++ chrome/test/data/extensions/trigger_actions/page_action/background.html (working copy) |
@@ -1,20 +1,10 @@ |
+<!-- |
+ * 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. |
+--> |
<html> |
<head> |
-<script> |
- // Show the page action icon for all tabs. |
- chrome.tabs.onCreated.addListener(function(tab) { |
- chrome.tabs.getAllInWindow(null, function(tabs) { |
- for (var i = 0, t; t = tabs[i]; i++) { |
- chrome.pageAction.show(t.id); |
- } |
- }); |
- }); |
- |
- // Turn the background red when the user clicks on the page action. |
- chrome.pageAction.onClicked.addListener(function(tab) { |
- chrome.tabs.executeScript( |
- null, {code: "document.body.style.backgroundColor='red'"}); |
- }); |
-</script> |
+<script src="background.js"></script> |
</head> |
</html> |