diff options
author | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-06 06:26:28 +0000 |
---|---|---|
committer | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-06 06:26:28 +0000 |
commit | 8f959f52d735203ca0efc2776b094ceed33b754f (patch) | |
tree | 58ea66f19dd96b2790c3a273b503233b8252eb16 /chrome/test | |
parent | 3687b2f8321ad2ddfc0dfbf51547fbdcc53491ad (diff) | |
download | chromium_src-8f959f52d735203ca0efc2776b094ceed33b754f.zip chromium_src-8f959f52d735203ca0efc2776b094ceed33b754f.tar.gz chromium_src-8f959f52d735203ca0efc2776b094ceed33b754f.tar.bz2 |
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
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
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'); +}); |