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

Unified Diff: sync/internal_api/attachments/attachment_store_frontend.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/attachments/attachment_store_frontend.cc
diff --git a/sync/internal_api/attachments/attachment_store_frontend.cc b/sync/internal_api/attachments/attachment_store_frontend.cc
index b098dd4b6bca4cecf15d075a9037ce65b1e2b6e7..31f14b63e89cd9503e286e0337b79245988f5607 100644
--- a/sync/internal_api/attachments/attachment_store_frontend.cc
+++ b/sync/internal_api/attachments/attachment_store_frontend.cc
@@ -18,13 +18,12 @@ namespace {
// NoOp is needed to bind base::Passed(backend) in AttachmentStoreFrontend dtor.
// It doesn't need to do anything.
-void NoOp(scoped_ptr<AttachmentStoreBackend> backend) {
-}
+void NoOp(std::unique_ptr<AttachmentStoreBackend> backend) {}
} // namespace
AttachmentStoreFrontend::AttachmentStoreFrontend(
- scoped_ptr<AttachmentStoreBackend> backend,
+ std::unique_ptr<AttachmentStoreBackend> backend,
const scoped_refptr<base::SequencedTaskRunner>& backend_task_runner)
: backend_(std::move(backend)), backend_task_runner_(backend_task_runner) {
DCHECK(backend_);

Powered by Google App Engine
This is Rietveld 408576698