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

Unified Diff: components/keyed_service/content/browser_context_keyed_service_factory.cc

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/content/browser_context_keyed_service_factory.cc
diff --git a/components/keyed_service/content/browser_context_keyed_service_factory.cc b/components/keyed_service/content/browser_context_keyed_service_factory.cc
index db69459aa818ecf882f29113e5deec319d55dbce..f008d176167e344e8023d87629c72b957b2d2c80 100644
--- a/components/keyed_service/content/browser_context_keyed_service_factory.cc
+++ b/components/keyed_service/content/browser_context_keyed_service_factory.cc
@@ -5,6 +5,7 @@
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/pref_registry/pref_registry_syncable.h"
@@ -85,12 +86,12 @@ void BrowserContextKeyedServiceFactory::BrowserContextDestroyed(
KeyedServiceFactory::ContextDestroyed(context);
}
-scoped_ptr<KeyedService>
+std::unique_ptr<KeyedService>
BrowserContextKeyedServiceFactory::BuildServiceInstanceFor(
base::SupportsUserData* context) const {
// TODO(isherman): The wrapped BuildServiceInstanceFor() should return a
// scoped_ptr as well.
- return make_scoped_ptr(
+ return base::WrapUnique(
BuildServiceInstanceFor(static_cast<content::BrowserContext*>(context)));
}

Powered by Google App Engine
This is Rietveld 408576698