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

Unified Diff: athena/activity/activity.cc

Issue 310243003: Let ActivityManager delete the remaining activities on shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 6 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/activity/activity_manager_impl.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
new file mode 100644
index 0000000000000000000000000000000000000000..6a33f02cb33be1877bb43b4e20875f909ae38c8c
--- /dev/null
+++ b/athena/activity/activity.cc
@@ -0,0 +1,15 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "athena/activity/public/activity.h"
+
+#include "athena/activity/public/activity_manager.h"
+
+namespace athena {
+
+Activity::~Activity() {
+ ActivityManager::Get()->RemoveActivity(this);
+}
+
+} // namespace athena
« no previous file with comments | « no previous file | athena/activity/activity_manager_impl.cc » ('j') | athena/activity/activity_manager_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698