Index: chrome/test/data/extensions/api_test/notifications/api/basic_app/main.js |
diff --git a/chrome/test/data/extensions/platform_apps/app_window/generic/main.js b/chrome/test/data/extensions/api_test/notifications/api/basic_app/main.js |
similarity index 57% |
copy from chrome/test/data/extensions/platform_apps/app_window/generic/main.js |
copy to chrome/test/data/extensions/api_test/notifications/api/basic_app/main.js |
index 5176946a112e59b687cccfa1390027c1ebc9f4fb..3691c97be3260220f9806e4e4b2f812c036e2950 100644 |
--- a/chrome/test/data/extensions/platform_apps/app_window/generic/main.js |
+++ b/chrome/test/data/extensions/api_test/notifications/api/basic_app/main.js |
@@ -1,4 +1,4 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -6,8 +6,10 @@ chrome.app.runtime.onLaunched.addListener(function() { |
chrome.test.sendMessage('launched', function(reply) { |
// Create window options defined in tests. |
- var options = JSON.parse(reply); |
- chrome.app.window.create('index.html', options, function() {}); |
+ const options = JSON.parse(reply); |
+ chrome.app.window.create('index.html', options, function(appWindow) { |
+ appWindow.focus(); |
+ }); |
}); |
}); |