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

Unified Diff: components/sync_driver/profile_sync_auth_provider.cc

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback 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/sync_driver/profile_sync_auth_provider.cc
diff --git a/components/sync_driver/profile_sync_auth_provider.cc b/components/sync_driver/profile_sync_auth_provider.cc
index 894a20c82c55a17f17d8adfd872b7d62869cbac5..39c9c5a933a5c4627586c7144dcae5720b4afb6f 100644
--- a/components/sync_driver/profile_sync_auth_provider.cc
+++ b/components/sync_driver/profile_sync_auth_provider.cc
@@ -129,10 +129,10 @@ void ProfileSyncAuthProvider::InvalidateAccessToken(const std::string& token) {
token_service_->InvalidateAccessToken(account_id_, oauth2_scope_, token);
}
-scoped_ptr<syncer::SyncAuthProvider>
+std::unique_ptr<syncer::SyncAuthProvider>
ProfileSyncAuthProvider::CreateProviderForSyncThread() {
DCHECK(CalledOnValidThread());
- scoped_ptr<syncer::SyncAuthProvider> auth_provider(new SyncThreadProxy(
+ std::unique_ptr<syncer::SyncAuthProvider> auth_provider(new SyncThreadProxy(
weak_factory_.GetWeakPtr(), base::ThreadTaskRunnerHandle::Get()));
return auth_provider;
}
« no previous file with comments | « components/sync_driver/profile_sync_auth_provider.h ('k') | components/sync_driver/profile_sync_auth_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698