From 8f959f52d735203ca0efc2776b094ceed33b754f Mon Sep 17 00:00:00 2001 From: "tmdiep@chromium.org" Date: Wed, 6 Aug 2014 06:26:28 +0000 Subject: Disable ephemeral apps after they stop running Ephemeral apps are unloaded and disabled after they stop running to ensure that they have no background activity while they are cached. The event router, message service and message center no longer need special handling for idle ephemeral apps. BUG=339001,358052 TEST=browser_tests TBR=dewittj@chromium.org (for removal of code in message_center_settings_controller.cc) Review URL: https://codereview.chromium.org/344543006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287705 0039d316-1c4b-4281-b951-d872f2087c98 --- .../platform_apps/ephemeral_apps/dispatch_event/main.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome/test') 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 0ac9f1a..7ce9844 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'); +}); -- cgit v1.1