- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / lazy_background_page / incognito_split / 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 var inIncognitoContext = chrome.extension.inIncognitoContext;
6 var message = inIncognitoContext ? "waiting_incognito" : "waiting";
7
8 function reportSuccess() {
9   chrome.test.sendMessage(message);
10 }
11
12 chrome.browserAction.onClicked.addListener(function() {
13   reportSuccess();
14 });
15
16 chrome.bookmarks.onCreated.addListener(function() {
17   reportSuccess();
18 });