Index: components/keyed_service/core/keyed_service_factory.cc |
diff --git a/components/keyed_service/core/keyed_service_factory.cc b/components/keyed_service/core/keyed_service_factory.cc |
index 401efa284bc29f9c0713568b107aa9bb2de705e6..7fe140779bca918219b470e61d617f8642996be7 100644 |
--- a/components/keyed_service/core/keyed_service_factory.cc |
+++ b/components/keyed_service/core/keyed_service_factory.cc |
@@ -79,7 +79,7 @@ KeyedService* KeyedServiceFactory::GetServiceForContext( |
// Create new object. |
// Check to see if we have a per-context testing factory that we should use |
// instead of default behavior. |
- scoped_ptr<KeyedService> service; |
+ std::unique_ptr<KeyedService> service; |
const auto& jt = testing_factories_.find(context); |
if (jt != testing_factories_.end()) { |
if (jt->second) { |
@@ -96,7 +96,7 @@ KeyedService* KeyedServiceFactory::GetServiceForContext( |
} |
void KeyedServiceFactory::Associate(base::SupportsUserData* context, |
- scoped_ptr<KeyedService> service) { |
+ std::unique_ptr<KeyedService> service) { |
DCHECK(!ContainsKey(mapping_, context)); |
mapping_.insert(std::make_pair(context, service.release())); |
} |