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

Unified Diff: sync/internal_api/public/attachments/attachment_store_frontend.h

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/public/attachments/attachment_store_frontend.h
diff --git a/sync/internal_api/public/attachments/attachment_store_frontend.h b/sync/internal_api/public/attachments/attachment_store_frontend.h
index 49a447dc5429fbc3962a888a4cae6d2924b168b5..4fcada842bc7edde1d8a96b03e58dffeade1bd00 100644
--- a/sync/internal_api/public/attachments/attachment_store_frontend.h
+++ b/sync/internal_api/public/attachments/attachment_store_frontend.h
@@ -5,9 +5,10 @@
#ifndef SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_STORE_FRONTEND_H_
#define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_STORE_FRONTEND_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "sync/api/attachments/attachment_store.h"
@@ -33,7 +34,7 @@ class SYNC_EXPORT AttachmentStoreFrontend
public base::NonThreadSafe {
public:
AttachmentStoreFrontend(
- scoped_ptr<AttachmentStoreBackend> backend,
+ std::unique_ptr<AttachmentStoreBackend> backend,
const scoped_refptr<base::SequencedTaskRunner>& backend_task_runner);
void Init(const AttachmentStore::InitCallback& callback);
@@ -62,7 +63,7 @@ class SYNC_EXPORT AttachmentStoreFrontend
friend class base::RefCounted<AttachmentStoreFrontend>;
virtual ~AttachmentStoreFrontend();
- scoped_ptr<AttachmentStoreBackend> backend_;
+ std::unique_ptr<AttachmentStoreBackend> backend_;
scoped_refptr<base::SequencedTaskRunner> backend_task_runner_;
DISALLOW_COPY_AND_ASSIGN(AttachmentStoreFrontend);

Powered by Google App Engine
This is Rietveld 408576698