Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / extensions / platform_apps / app_icon / test.js
blobafb3eb88534d73078af11a162ec4e45fcc7618cd
1 // Copyright (c) 2013 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.app.runtime.onLaunched.addListener(function() {
6 chrome.test.sendMessage("Launched");
7 // Create a panel window first
8 chrome.app.window.create(
9 'main.html', { type: "panel" },
10 function (win) {
11 // Set the panel window icon
12 win.setIcon("icon64.png")
13 // Create the shell window; it should use the app icon, and not affect
14 // the panel icon.
15 chrome.app.window.create(
16 'main.html', { type: "shell" },
17 function (win) {
18 chrome.test.sendMessage("Completed");
19 });
20 });
21 });