Index: components/keyed_service/core/keyed_service_shutdown_notifier.cc |
diff --git a/components/keyed_service/core/keyed_service_shutdown_notifier.cc b/components/keyed_service/core/keyed_service_shutdown_notifier.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cb0b27c482ccdae7c7f8c945c84dd31b97fc932a |
--- /dev/null |
+++ b/components/keyed_service/core/keyed_service_shutdown_notifier.cc |
@@ -0,0 +1,20 @@ |
+// Copyright 2015 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 "components/keyed_service/core/keyed_service_export.h" |
+#include "components/keyed_service/core/keyed_service_shutdown_notifier.h" |
+ |
+KeyedServiceShutdownNotifier::KeyedServiceShutdownNotifier() { |
+} |
+KeyedServiceShutdownNotifier::~KeyedServiceShutdownNotifier() { |
+} |
+ |
+scoped_ptr<base::CallbackList<void()>::Subscription> |
+KeyedServiceShutdownNotifier::Subscribe(const base::Closure& callback) { |
+ return callback_list_.Add(callback); |
+} |
+ |
+void KeyedServiceShutdownNotifier::Shutdown() { |
+ callback_list_.Notify(); |
+} |