Index: chrome/browser/sync/test/sessions/test_scoped_session_event_listener.h |
diff --git a/chrome/browser/sync/test/sessions/test_scoped_session_event_listener.h b/chrome/browser/sync/test/sessions/test_scoped_session_event_listener.h |
deleted file mode 100644 |
index 15fc68c770e701c4926770f973b9416935cc4f45..0000000000000000000000000000000000000000 |
--- a/chrome/browser/sync/test/sessions/test_scoped_session_event_listener.h |
+++ /dev/null |
@@ -1,36 +0,0 @@ |
-// Copyright (c) 2010 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. |
- |
-#ifndef CHROME_BROWSER_SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_ |
-#define CHROME_BROWSER_SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_ |
-#pragma once |
- |
-#include "chrome/browser/sync/sessions/sync_session_context.h" |
- |
-namespace browser_sync { |
-namespace sessions { |
- |
-// Installs a SyncEventListener to a given session context for the lifetime of |
-// the TestScopedSessionEventListener. |
-class TestScopedSessionEventListener { |
- public: |
- TestScopedSessionEventListener( |
- SyncSessionContext* context, |
- SyncEngineEventListener* listener) |
- : context_(context), listener_(listener) { |
- context->listeners_.AddObserver(listener); |
- } |
- ~TestScopedSessionEventListener() { |
- context_->listeners_.RemoveObserver(listener_); |
- } |
- private: |
- SyncSessionContext* context_; |
- SyncEngineEventListener* listener_; |
- DISALLOW_COPY_AND_ASSIGN(TestScopedSessionEventListener); |
-}; |
- |
-} // namespace sessions |
-} // namespace browser_sync |
- |
-#endif // CHROME_BROWSER_SYNC_TEST_SESSIONS_TEST_SCOPED_SESSION_EVENT_LISTENER_H_ |