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

Unified Diff: components/keyed_service/content/browser_context_dependency_manager.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_dependency_manager.cc
diff --git a/components/keyed_service/content/browser_context_dependency_manager.cc b/components/keyed_service/content/browser_context_dependency_manager.cc
index 113f1d9ebe90461a0ad953d68d0354f96ecb4775..2e441d99e43e4ff5ead2ed8e15342ccb68ecc490 100644
--- a/components/keyed_service/content/browser_context_dependency_manager.cc
+++ b/components/keyed_service/content/browser_context_dependency_manager.cc
@@ -52,10 +52,11 @@ void BrowserContextDependencyManager::DestroyBrowserContextServices(
DependencyManager::DestroyContextServices(context);
}
-scoped_ptr<base::CallbackList<void(content::BrowserContext*)>::Subscription>
+std::unique_ptr<
+ base::CallbackList<void(content::BrowserContext*)>::Subscription>
BrowserContextDependencyManager::
-RegisterWillCreateBrowserContextServicesCallbackForTesting(
- const base::Callback<void(content::BrowserContext*)>& callback) {
+ RegisterWillCreateBrowserContextServicesCallbackForTesting(
+ const base::Callback<void(content::BrowserContext*)>& callback) {
return will_create_browser_context_services_callbacks_.Add(callback);
}

Powered by Google App Engine
This is Rietveld 408576698