- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / lazy_background_page / broadcast_event / background.js
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.
4
5 chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
6   if (tab.url.search("test_file.html") > -1)
7     chrome.pageAction.show(tabId);
8   else
9     chrome.pageAction.hide(tabId);
10 });