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

Unified Diff: athena/test/base/activity_lifetime_tracker.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « athena/test/base/activity_lifetime_tracker.h ('k') | athena/test/base/athena_browser_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/test/base/activity_lifetime_tracker.cc
diff --git a/athena/test/base/activity_lifetime_tracker.cc b/athena/test/base/activity_lifetime_tracker.cc
deleted file mode 100644
index ea62e4b9a2a0c59a5768a723edb20ea29d90e394..0000000000000000000000000000000000000000
--- a/athena/test/base/activity_lifetime_tracker.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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/test/base/activity_lifetime_tracker.h"
-
-#include "athena/activity/public/activity_manager.h"
-
-namespace athena {
-
-ActivityLifetimeTracker::ActivityLifetimeTracker()
- : new_activity_(nullptr), deleted_activity_(nullptr) {
- ActivityManager::Get()->AddObserver(this);
-}
-
-ActivityLifetimeTracker::~ActivityLifetimeTracker() {
- ActivityManager::Get()->RemoveObserver(this);
-}
-
-void ActivityLifetimeTracker::OnActivityStarted(Activity* activity) {
- new_activity_ = activity;
-}
-
-void ActivityLifetimeTracker::OnActivityEnding(Activity* activity) {
- deleted_activity_ = activity;
-}
-
-void ActivityLifetimeTracker::OnActivityOrderChanged() {
-}
-
-Activity* ActivityLifetimeTracker::GetNewActivityAndReset() {
- Activity* activity = new_activity_;
- new_activity_ = nullptr;
- return activity;
-}
-
-void* ActivityLifetimeTracker::GetDeletedActivityAndReset() {
- void* activity = deleted_activity_;
- deleted_activity_ = nullptr;
- return activity;
-}
-
-} // namespace athena
« no previous file with comments | « athena/test/base/activity_lifetime_tracker.h ('k') | athena/test/base/athena_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698