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

Unified Diff: chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js

Issue 344543006: Disable ephemeral apps after they stop running (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prevent demotion of installed app due to race condition Created 6 years, 6 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
Index: chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js
diff --git a/chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js b/chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js
index 0ac9f1afda188927b45611fbaa1a3f2bd1e4bd22..7ce9844f0bc913368f18c5731a46e69f6e771b0b 100644
--- a/chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js
+++ b/chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js
@@ -6,6 +6,14 @@ chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {});
});
+chrome.app.runtime.onRestarted.addListener(function() {
+ chrome.test.sendMessage('restarted');
+});
+
chrome.alarms.onAlarm.addListener(function(alarmInfo) {
chrome.test.sendMessage('alarm_received');
});
+
+chrome.runtime.onInstalled.addListener(function() {
+ chrome.test.sendMessage('installed');
+});

Powered by Google App Engine
This is Rietveld 408576698