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

Unified Diff: sync/internal_api/public/attachments/attachment_downloader_impl.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: Rebase and fix conflicts 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_impl.h
diff --git a/sync/internal_api/public/attachments/attachment_downloader_impl.h b/sync/internal_api/public/attachments/attachment_downloader_impl.h
index a78912f82ea06eb2fb13decd028c005c1d5ce097..43bb666162e3c8e306974675482817b8c8773c50 100644
--- a/sync/internal_api/public/attachments/attachment_downloader_impl.h
+++ b/sync/internal_api/public/attachments/attachment_downloader_impl.h
@@ -86,12 +86,13 @@ class AttachmentDownloaderImpl : public AttachmentDownloader,
struct DownloadState;
typedef std::string AttachmentUrl;
- typedef base::ScopedPtrHashMap<AttachmentUrl, scoped_ptr<DownloadState>>
+ typedef base::ScopedPtrHashMap<AttachmentUrl, std::unique_ptr<DownloadState>>
StateMap;
typedef std::vector<DownloadState*> StateList;
- scoped_ptr<net::URLFetcher> CreateFetcher(const AttachmentUrl& url,
- const std::string& access_token);
+ std::unique_ptr<net::URLFetcher> CreateFetcher(
+ const AttachmentUrl& url,
+ const std::string& access_token);
void RequestAccessToken(DownloadState* download_state);
void ReportResult(
const DownloadState& download_state,
@@ -113,7 +114,7 @@ class AttachmentDownloaderImpl : public AttachmentDownloader,
OAuth2TokenService::ScopeSet oauth2_scopes_;
scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>
token_service_provider_;
- scoped_ptr<OAuth2TokenService::Request> access_token_request_;
+ std::unique_ptr<OAuth2TokenService::Request> access_token_request_;
std::string raw_store_birthday_;
StateMap state_map_;

Powered by Google App Engine
This is Rietveld 408576698