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

Unified Diff: athena/activity/activity.cc

Issue 536013002: Decoupling visibility states from webcontent, adding visibility management in ResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a few more unittests Created 6 years, 3 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
« no previous file with comments | « no previous file | athena/activity/activity_manager_impl.cc » ('j') | athena/content/app_activity.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/activity/activity.cc
diff --git a/athena/activity/activity.cc b/athena/activity/activity.cc
index 6a33f02cb33be1877bb43b4e20875f909ae38c8c..a6cb6169a39a9d2987f5964f2224f54283a0deef 100644
--- a/athena/activity/activity.cc
+++ b/athena/activity/activity.cc
@@ -8,8 +8,10 @@
namespace athena {
-Activity::~Activity() {
- ActivityManager::Get()->RemoveActivity(this);
+// static
+void Activity::CloseActivity(Activity* activity) {
+ ActivityManager::Get()->RemoveActivity(activity);
+ delete activity;
oshima 2014/09/04 16:39:23 Maybe we should just have ActivityManager::Delete
Mr4D (OOO till 08-26) 2014/09/04 19:10:57 During destruction a pure virtual call occured ins
}
} // namespace athena
« no previous file with comments | « no previous file | athena/activity/activity_manager_impl.cc » ('j') | athena/content/app_activity.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698