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

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

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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // The Page Action ID.
6 var pageActionId = "TestId";
7
8 // The window this Page Action is associated with.
9 var windowId = -1;
10
11 // The TabId this Page Action is associated with.
12 var tabId = -1;
13
14 // The URL of the page on build.chromium.org.
15 var pageUrl = "";
16
17 chrome.self.onConnect.addListener(function(port) {
18 windowId = port.tab.windowId;
19 tabId = port.tab.id;
20 pageUrl = port.tab.url;
21
22 port.onMessage.addListener(function(mybool) {
23 // Let Chrome know that the PageAction needs to be enabled for this tabId
24 // and for the url of this page.
25 chrome.pageActions.enableForTab(pageActionId,
26 {tabId: tabId, url: pageUrl});
27 });
28 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698