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

Unified Diff: sync/internal_api/public/attachments/attachment_downloader.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_downloader.h
diff --git a/sync/internal_api/public/attachments/attachment_downloader.h b/sync/internal_api/public/attachments/attachment_downloader.h
index 5facce2f34af1483b683eeb1261701aeb32d7023..b73ed1df04445e8ee412b81063946ab1b2419dda 100644
--- a/sync/internal_api/public/attachments/attachment_downloader.h
+++ b/sync/internal_api/public/attachments/attachment_downloader.h
@@ -5,10 +5,10 @@
#ifndef SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_DOWNLOADER_H_
#define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_DOWNLOADER_H_
+#include <memory>
#include <string>
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "google_apis/gaia/oauth2_token_service_request.h"
#include "sync/api/attachments/attachment.h"
#include "sync/base/sync_export.h"
@@ -31,7 +31,8 @@ class SYNC_EXPORT AttachmentDownloader {
DOWNLOAD_UNSPECIFIED_ERROR, // An unspecified error occurred.
};
- typedef base::Callback<void(const DownloadResult&, scoped_ptr<Attachment>)>
+ typedef base::Callback<void(const DownloadResult&,
+ std::unique_ptr<Attachment>)>
DownloadCallback;
virtual ~AttachmentDownloader();
@@ -58,7 +59,7 @@ class SYNC_EXPORT AttachmentDownloader {
// |store_birthday| is the raw, sync store birthday.
//
// |model_type| is the model type this downloader is used with.
- static scoped_ptr<AttachmentDownloader> Create(
+ static std::unique_ptr<AttachmentDownloader> Create(
const GURL& sync_service_url,
const scoped_refptr<net::URLRequestContextGetter>&
url_request_context_getter,

Powered by Google App Engine
This is Rietveld 408576698