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.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
6 if (tab.url.search("test_file.html") > -1)
7 chrome.pageAction.show(tabId);
9 chrome.pageAction.hide(tabId);