Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: chrome/test/data/extensions/platform_apps/restart_test/test.js

Issue 10875027: Restart running apps when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/platform_apps/restart_test/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/restart_test/test.js
diff --git a/chrome/test/data/extensions/platform_apps/browser_tag/test.js b/chrome/test/data/extensions/platform_apps/restart_test/test.js
similarity index 58%
copy from chrome/test/data/extensions/platform_apps/browser_tag/test.js
copy to chrome/test/data/extensions/platform_apps/restart_test/test.js
index 3d6bffa025e94fb420236e37722514cdce3353d1..9bdfada56deacab866487cb4fde4a42d1f378cfa 100644
--- a/chrome/test/data/extensions/platform_apps/browser_tag/test.js
+++ b/chrome/test/data/extensions/platform_apps/restart_test/test.js
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('main.html', {}, function () {});
+chrome.app.runtime.onRestarted.addListener(function (e) {
+ chrome.test.sendMessage("onRestarted");
});
+
+chrome.test.succeed();
« no previous file with comments | « chrome/test/data/extensions/platform_apps/restart_test/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698