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
.management
.onInstalled
.addListener(function(extensionInfo
) {
6 if (!extensionInfo
.isApp
) {
7 console
.log("Can't launch " + extensionInfo
.name
+ " (" +
8 extensionInfo
.id
+ "): Not an app.");
11 console
.log("Launch " + extensionInfo
.name
+ " (" +
12 extensionInfo
.id
+ ")");
14 chrome
.management
.launchApp(extensionInfo
.id
, function() {
15 chrome
.test
.sendMessage("launched app");
20 chrome
.test
.sendMessage("launcher loaded");