Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / management / launch_on_install / background.js
blobd021ada4118898e7fd1438a35542d2483559b217
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.");
9 return;
11 console.log("Launch " + extensionInfo.name + " (" +
12 extensionInfo.id + ")");
14 chrome.management.launchApp(extensionInfo.id, function() {
15 chrome.test.sendMessage("launched app");
16 });
18 });
20 chrome.test.sendMessage("launcher loaded");