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

Unified Diff: ios/chrome/browser/signin/account_fetcher_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: Add header 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_fetcher_service_factory.cc
diff --git a/ios/chrome/browser/signin/account_fetcher_service_factory.cc b/ios/chrome/browser/signin/account_fetcher_service_factory.cc
index cce0abdcfb0cb87b670fd8380994f5c21791afed..f052d4f15c1e1dde32fb0b6c4c515d5991200ab1 100644
--- a/ios/chrome/browser/signin/account_fetcher_service_factory.cc
+++ b/ios/chrome/browser/signin/account_fetcher_service_factory.cc
@@ -45,11 +45,12 @@ void AccountFetcherServiceFactory::RegisterBrowserStatePrefs(
AccountFetcherService::RegisterPrefs(registry);
}
-scoped_ptr<KeyedService> AccountFetcherServiceFactory::BuildServiceInstanceFor(
+std::unique_ptr<KeyedService>
+AccountFetcherServiceFactory::BuildServiceInstanceFor(
web::BrowserState* context) const {
ios::ChromeBrowserState* browser_state =
ios::ChromeBrowserState::FromBrowserState(context);
- scoped_ptr<AccountFetcherService> service(new AccountFetcherService());
+ std::unique_ptr<AccountFetcherService> service(new AccountFetcherService());
service->Initialize(
SigninClientFactory::GetForBrowserState(browser_state),
OAuth2TokenServiceFactory::GetForBrowserState(browser_state),

Powered by Google App Engine
This is Rietveld 408576698