1 // Copyright (c) 2012 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.
5 chrome
.runtime
.onConnect
.addListener(function(port
) {
6 port
.onMessage
.addListener(function(mybool
) {
7 // Let Chrome know that the PageAction needs to be enabled for this tabId
8 // and for the url of this page.
9 chrome
.pageAction
.show(port
.sender
.tab
.id
);