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

Unified Diff: ios/chrome/browser/signin/account_tracker_service_factory.cc

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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: ios/chrome/browser/signin/account_tracker_service_factory.cc
diff --git a/ios/chrome/browser/signin/account_tracker_service_factory.cc b/ios/chrome/browser/signin/account_tracker_service_factory.cc
index 6d4e1d0a3b7d5613aecf595a71094ddfe22d7ba7..8ce413c393c6345c65be7056072670af3fe37100 100644
--- a/ios/chrome/browser/signin/account_tracker_service_factory.cc
+++ b/ios/chrome/browser/signin/account_tracker_service_factory.cc
@@ -40,11 +40,12 @@ void AccountTrackerServiceFactory::RegisterBrowserStatePrefs(
AccountTrackerService::RegisterPrefs(registry);
}
-scoped_ptr<KeyedService> AccountTrackerServiceFactory::BuildServiceInstanceFor(
+std::unique_ptr<KeyedService>
+AccountTrackerServiceFactory::BuildServiceInstanceFor(
web::BrowserState* context) const {
ios::ChromeBrowserState* chrome_browser_state =
ios::ChromeBrowserState::FromBrowserState(context);
- scoped_ptr<AccountTrackerService> service(new AccountTrackerService());
+ std::unique_ptr<AccountTrackerService> service(new AccountTrackerService());
service->Initialize(
SigninClientFactory::GetForBrowserState(chrome_browser_state));
return std::move(service);

Powered by Google App Engine
This is Rietveld 408576698