Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / page_action / add_popup / background.js
blob0515c08f0d0aef8a6b9b85de49b0ba27b83ef682
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.
5 chrome.tabs.getSelected(null, function(tab) {
6 chrome.pageAction.show(tab.id);
8 // When the page action icon is clicked for the first time, add a popup.
9 chrome.pageAction.onClicked.addListener(function(tab) {
10 window.tabId = tab.id;
12 chrome.pageAction.setPopup({
13 tabId: tab.id,
14 popup: 'a_popup.html'
15 });
16 chrome.test.notifyPass();
17 });
19 chrome.test.notifyPass();
20 });