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

Unified Diff: chrome/test/data/extensions/samples/print_browser_action/background.html

Issue 264046: Update browser actions api to be like new design doc. (Closed)
Patch Set: rebase Created 11 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/test/data/extensions/samples/print_browser_action/background.html
diff --git a/chrome/test/data/extensions/samples/print_browser_action/background.html b/chrome/test/data/extensions/samples/print_browser_action/background.html
index 75501ea5d53b33b3f9441d1595d6dc77d3cc8962..5b3f9308dc1cc35ca5b14f5eb50703da0434534e 100644
--- a/chrome/test/data/extensions/samples/print_browser_action/background.html
+++ b/chrome/test/data/extensions/samples/print_browser_action/background.html
@@ -2,11 +2,9 @@
<head>
<script>
// Called when the user clicks on the browser action.
- chrome.browserAction.onClicked.addListener(function(windowId) {
- chrome.tabs.getSelected(windowId, function(tab) {
- var action_url = "javascript:window.print();";
- chrome.tabs.update(tab.id, {url: action_url});
- });
+ chrome.browserAction.onClicked.addListener(function(tab) {
+ var action_url = "javascript:window.print();";
+ chrome.tabs.update(tab.id, {url: action_url});
});
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698