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

Issue 344543006: Disable ephemeral apps after they stop running (Closed)

Created:
6 years, 5 months ago by tmdiep
Modified:
6 years, 4 months ago
Reviewers:
Yoyo Zhou, benwells
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287705

Patch Set 1 #

Patch Set 2 : Prevent demotion of installed app due to race condition #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Fixes for startup #

Patch Set 5 : Remove non-platform ephemeral apps #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Total comments: 2

Patch Set 9 : Rebase #

Patch Set 10 : Addressed review comments and refactoring #

Unified diffs Side-by-side diffs Delta from patch set Stats (+641 lines, -205 lines) Patch
M apps/app_lifetime_monitor.h View 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_browsertest.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_browsertest.cc View 1 2 3 4 5 6 7 8 9 23 chunks +345 lines, -121 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_launcher_browsertest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +32 lines, -9 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_service.h View 1 2 3 4 5 6 7 8 9 5 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/apps/ephemeral_app_service.cc View 1 2 3 4 5 6 7 8 9 7 chunks +121 lines, -13 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_service_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +51 lines, -1 line 0 comments Download
M chrome/browser/apps/ephemeral_app_service_factory.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 5 chunks +36 lines, -9 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -8 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js View 1 chunk +8 lines, -0 lines 0 comments Download
M extensions/browser/api/app_runtime/app_runtime_api.cc View 1 2 3 chunks +0 lines, -3 lines 0 comments Download
M extensions/browser/event_router.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/browser/event_router.cc View 1 2 3 4 5 6 7 8 5 chunks +3 lines, -16 lines 0 comments Download
M extensions/common/extension.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
tmdiep
This patch unloads ephemeral apps when they stop running. Rather than adding another list to ...
6 years, 5 months ago (2014-06-30 02:46:18 UTC) #1
benwells
On 2014/06/30 02:46:18, tmdiep wrote: > This patch unloads ephemeral apps when they stop running. ...
6 years, 5 months ago (2014-07-02 00:56:53 UTC) #2
tmdiep
On 2014/07/02 00:56:53, benwells wrote: > On 2014/06/30 02:46:18, tmdiep wrote: > > This patch ...
6 years, 5 months ago (2014-07-02 00:58:31 UTC) #3
benwells
+yoz for his opinion on the overall approach.
6 years, 5 months ago (2014-07-02 06:56:11 UTC) #4
tmdiep
https://codereview.chromium.org/344543006/diff/20001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/344543006/diff/20001/chrome/browser/extensions/extension_service.cc#newcode893 chrome/browser/extensions/extension_service.cc:893: extension_prefs_->AddDisableReason(extension_id, disable_reason); yoz: Are multiple disable reasons meant to ...
6 years, 5 months ago (2014-07-02 07:13:39 UTC) #5
tmdiep
Pinging yoz for opinion about the approach. Is it reasonable to disable ephemeral apps that ...
6 years, 5 months ago (2014-07-10 05:17:00 UTC) #6
Yoyo Zhou
Sorry, I'm not too familiar with ephemeral apps in general. I think the general idea ...
6 years, 5 months ago (2014-07-10 23:30:12 UTC) #7
tmdiep
Thanks for taking a look at this. Good questions! > Sorry, I'm not too familiar ...
6 years, 5 months ago (2014-07-11 00:28:08 UTC) #8
tmdiep
Ben: yoz seems to be ok with the use of multiple disable reasons. Can you ...
6 years, 5 months ago (2014-07-15 07:53:57 UTC) #9
benwells
Sorry, I forgot about this. Just the one question... https://codereview.chromium.org/344543006/diff/210001/chrome/browser/apps/ephemeral_app_service.cc File chrome/browser/apps/ephemeral_app_service.cc (right): https://codereview.chromium.org/344543006/diff/210001/chrome/browser/apps/ephemeral_app_service.cc#newcode266 chrome/browser/apps/ephemeral_app_service.cc:266: ...
6 years, 4 months ago (2014-07-29 08:58:42 UTC) #10
tmdiep
Thanks for taking a look at this. Patch set 10 addresses the review comment and ...
6 years, 4 months ago (2014-08-04 06:22:54 UTC) #11
benwells
lgtm, thanks!
6 years, 4 months ago (2014-08-05 22:34:49 UTC) #12
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 4 months ago (2014-08-05 22:59:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/344543006/250001
6 years, 4 months ago (2014-08-05 23:01:24 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 06:26:33 UTC) #15
Message was sent while issue was closed.
Change committed as 287705

Powered by Google App Engine
This is Rietveld 408576698