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

Unified Diff: sync/syncable/mutable_entry.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/syncable/mutable_entry.cc
diff --git a/sync/syncable/mutable_entry.cc b/sync/syncable/mutable_entry.cc
index eac80f93ebf6d17ad0712bf82b2affa1c36dcdc8..160a6dfbf034fd9554cf86a722d1c10199f3f9c5 100644
--- a/sync/syncable/mutable_entry.cc
+++ b/sync/syncable/mutable_entry.cc
@@ -6,7 +6,8 @@
#include <stdint.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "sync/internal_api/public/base/unique_position.h"
#include "sync/syncable/directory.h"
#include "sync/syncable/scoped_kernel_lock.h"
@@ -25,7 +26,7 @@ void MutableEntry::Init(WriteTransaction* trans,
ModelType model_type,
const Id& parent_id,
const string& name) {
- scoped_ptr<EntryKernel> kernel(new EntryKernel);
+ std::unique_ptr<EntryKernel> kernel(new EntryKernel);
kernel_ = NULL;
kernel->put(ID, trans->directory_->NextId());

Powered by Google App Engine
This is Rietveld 408576698