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

Side by Side Diff: chrome/test/data/extensions/browsertest/crash_25562/background.html

Issue 8784009: Update more extension manifests to manifest_version 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!--
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the
4 * LICENSE file.
5 -->
1 <html> 6 <html>
2 <script> 7 <script src="background.js"></script>
3 // The Page Action ID.
4 var pageActionId = "TestId";
5
6 // The window this Page Action is associated with.
7 var windowId = -1;
8
9 // The TabId this Page Action is associated with.
10 var tabId = -1;
11
12 // The URL of the page on build.chromium.org.
13 var pageUrl = "";
14
15 chrome.self.onConnect.addListener(function(port) {
16 windowId = port.tab.windowId;
17 tabId = port.tab.id;
18 pageUrl = port.tab.url;
19
20 port.onMessage.addListener(function(mybool) {
21 // Let Chrome know that the PageAction needs to be enabled for this tabId
22 // and for the url of this page.
23 chrome.pageActions.enableForTab(pageActionId,
24 {tabId: tabId, url: pageUrl});
25 });
26 });
27 </script>
28 </html> 8 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698