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

Unified Diff: sync/internal_api/sync_context_proxy_impl.cc

Issue 1866243002: Convert //sync 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: sync/internal_api/sync_context_proxy_impl.cc
diff --git a/sync/internal_api/sync_context_proxy_impl.cc b/sync/internal_api/sync_context_proxy_impl.cc
index 0f1fd221917037cc33ac58fa4fbace510200956e..27e63577ab0933742a106c5f3fa6e123fd42f08a 100644
--- a/sync/internal_api/sync_context_proxy_impl.cc
+++ b/sync/internal_api/sync_context_proxy_impl.cc
@@ -23,7 +23,7 @@ SyncContextProxyImpl::~SyncContextProxyImpl() {
void SyncContextProxyImpl::ConnectTypeToSync(
syncer::ModelType type,
- scoped_ptr<ActivationContext> activation_context) {
+ std::unique_ptr<ActivationContext> activation_context) {
VLOG(1) << "ConnectTypeToSync: " << ModelTypeToString(type);
sync_task_runner_->PostTask(
FROM_HERE,
@@ -37,8 +37,8 @@ void SyncContextProxyImpl::Disconnect(syncer::ModelType type) {
base::Bind(&SyncContext::DisconnectSyncWorker, sync_context_, type));
}
-scoped_ptr<SyncContextProxy> SyncContextProxyImpl::Clone() const {
- return scoped_ptr<SyncContextProxy>(
+std::unique_ptr<SyncContextProxy> SyncContextProxyImpl::Clone() const {
+ return std::unique_ptr<SyncContextProxy>(
new SyncContextProxyImpl(sync_task_runner_, sync_context_));
}

Powered by Google App Engine
This is Rietveld 408576698