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

Issue 310243003: Let ActivityManager delete the remaining activities on shutdown. (Closed)

Created:
6 years, 6 months ago by Jun Mukai
Modified:
6 years, 6 months ago
Reviewers:
oshima, sadrul
CC:
chromium-reviews
Visibility:
Public.

Description

Let ActivityManager delete the remaining activities on shutdown. BUG=None R=oshima@chromium.org TEST=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275337

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix #

Total comments: 4

Patch Set 3 : fix / cleanup include #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -11 lines) Patch
A athena/activity/activity.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M athena/activity/activity_manager_impl.cc View 1 2 4 chunks +7 lines, -5 lines 0 comments Download
M athena/activity/public/activity.h View 1 1 chunk +1 line, -1 line 0 comments Download
M athena/activity/public/activity_manager.h View 1 chunk +4 lines, -4 lines 0 comments Download
M athena/athena.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M athena/content/web_activity.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Jun Mukai
6 years, 6 months ago (2014-06-04 03:39:05 UTC) #1
oshima
+sadrul, I think the design is that an activity can delete itself, and what's missing ...
6 years, 6 months ago (2014-06-04 05:05:12 UTC) #2
oshima
oops, +sadrul again
6 years, 6 months ago (2014-06-04 05:05:52 UTC) #3
Jun Mukai
On 2014/06/04 05:05:12, oshima wrote: > +sadrul, > > I think the design is that ...
6 years, 6 months ago (2014-06-04 05:09:15 UTC) #4
sadrul
On 2014/06/04 05:09:15, Jun Mukai wrote: > On 2014/06/04 05:05:12, oshima wrote: > > +sadrul, ...
6 years, 6 months ago (2014-06-04 05:17:40 UTC) #5
oshima
How about something like this? * ActivityManager owns Activity. What this means is that it ...
6 years, 6 months ago (2014-06-04 16:56:05 UTC) #6
Jun Mukai
Changed the code based on oshima's suggestion. - Activity invokes RemoveActivity on its destructor - ...
6 years, 6 months ago (2014-06-04 20:03:29 UTC) #7
sadrul
~ActivityManagerImpl() deletes the set of tasks, which triggers back to ActivityManagerImpl::RemoveActivity() through Activity::~Activity(). This also ...
6 years, 6 months ago (2014-06-04 20:34:04 UTC) #8
Jun Mukai
https://codereview.chromium.org/310243003/diff/20001/athena/activity/activity_manager_impl.cc File athena/activity/activity_manager_impl.cc (right): https://codereview.chromium.org/310243003/diff/20001/athena/activity/activity_manager_impl.cc#newcode30 athena/activity/activity_manager_impl.cc:30: delete activities_.front(); On 2014/06/04 20:34:05, sadrul wrote: > STLDeleteContainerPointers ...
6 years, 6 months ago (2014-06-04 21:11:14 UTC) #9
Jun Mukai
changed the title a bit to reflect the actual contents of the CL.
6 years, 6 months ago (2014-06-04 21:12:16 UTC) #10
oshima
On 2014/06/04 20:34:04, sadrul wrote: > ~ActivityManagerImpl() deletes the set of tasks, which triggers back ...
6 years, 6 months ago (2014-06-04 21:16:47 UTC) #11
oshima
lgtm I'm sure we need to change this again, but let's move on.
6 years, 6 months ago (2014-06-04 21:18:50 UTC) #12
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-05 21:52:59 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/310243003/60001
6 years, 6 months ago (2014-06-05 21:55:32 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 05:19:15 UTC) #15
Message was sent while issue was closed.
Change committed as 275337

Powered by Google App Engine
This is Rietveld 408576698