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

Unified Diff: components/keyed_service/core/keyed_service_shutdown_notifier.h

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: … Created 4 years, 8 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
Index: components/keyed_service/core/keyed_service_shutdown_notifier.h
diff --git a/components/keyed_service/core/keyed_service_shutdown_notifier.h b/components/keyed_service/core/keyed_service_shutdown_notifier.h
index 5e5c395e5a798bda1de8c111314a98a260a8b2a8..b77bf2a3ae107815316a6aeb32f64491da431f56 100644
--- a/components/keyed_service/core/keyed_service_shutdown_notifier.h
+++ b/components/keyed_service/core/keyed_service_shutdown_notifier.h
@@ -5,9 +5,10 @@
#ifndef COMPONENTS_KEYED_SERVICE_CORE_KEYED_SERVICE_SHUTDOWN_NOTIFIER_H_
#define COMPONENTS_KEYED_SERVICE_CORE_KEYED_SERVICE_SHUTDOWN_NOTIFIER_H_
+#include <memory>
+
#include "base/callback_list.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/keyed_service/core/keyed_service.h"
// This is a helper class for objects that depend on one or more keyed services,
@@ -27,7 +28,7 @@ class KEYED_SERVICE_EXPORT KeyedServiceShutdownNotifier : public KeyedService {
// Subscribe for a notification when the keyed services this object depends on
// (as defined by its factory) are shut down. The subscription object can be
// destroyed to unsubscribe.
- scoped_ptr<Subscription> Subscribe(const base::Closure& callback);
+ std::unique_ptr<Subscription> Subscribe(const base::Closure& callback);
private:
// KeyedService implementation:

Powered by Google App Engine
This is Rietveld 408576698