[Cronet] Delay StartNetLog and StopNetLog until native request context is initialized
[chromium-blink-merge.git] / chrome / test / data / extensions / platform_apps / hidden_then_shown / test.js
blobd1a7ff13ce95325831634072e2fb1dd6722cb04c
1 // Copyright 2014 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.app.window.create('empty.html', {
7 hidden: true,
8 }, function (win) {
9 chrome.test.sendMessage('Launched', function () {
10 setTimeout(function () {
11 win.show();
12 chrome.test.sendMessage('Shown');
13 }, 3000);
14 });
15 });
16 });