| Index: chrome/test/data/extensions/platform_apps/reload/main.js
|
| diff --git a/chrome/test/data/extensions/platform_apps/reload/main.js b/chrome/test/data/extensions/platform_apps/reload/main.js
|
| index 8d4d538bdfaab00a7a84b32a3064674ce05baf2f..134299fef02599579cd7a0064d1615e52ff408ae 100644
|
| --- a/chrome/test/data/extensions/platform_apps/reload/main.js
|
| +++ b/chrome/test/data/extensions/platform_apps/reload/main.js
|
| @@ -2,7 +2,9 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -chrome.test.sendMessage('Launched', function(response) {
|
| - if (response == "reload")
|
| - chrome.runtime.reload();
|
| +chrome.app.window.current().onWindowFirstShown.addListener(function() {
|
| + chrome.test.sendMessage('Launched', function(response) {
|
| + if (response == "reload")
|
| + chrome.runtime.reload();
|
| + });
|
| });
|
|
|