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

Side by Side Diff: sync/internal_api/attachments/attachment_downloader.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/internal_api/public/attachments/attachment_downloader.h" 5 #include "sync/internal_api/public/attachments/attachment_downloader.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "sync/internal_api/public/attachments/attachment_downloader_impl.h" 9 #include "sync/internal_api/public/attachments/attachment_downloader_impl.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 AttachmentDownloader::~AttachmentDownloader() { 13 AttachmentDownloader::~AttachmentDownloader() {
14 } 14 }
15 15
16 // Factory function for creating AttachmentDownloaderImpl. 16 // Factory function for creating AttachmentDownloaderImpl.
17 // It is introduced to avoid SYNC_EXPORT-ing AttachmentDownloaderImpl since it 17 // It is introduced to avoid SYNC_EXPORT-ing AttachmentDownloaderImpl since it
18 // inherits from OAuth2TokenService::Consumer which is not exported. 18 // inherits from OAuth2TokenService::Consumer which is not exported.
19 scoped_ptr<AttachmentDownloader> AttachmentDownloader::Create( 19 std::unique_ptr<AttachmentDownloader> AttachmentDownloader::Create(
20 const GURL& sync_service_url, 20 const GURL& sync_service_url,
21 const scoped_refptr<net::URLRequestContextGetter>& 21 const scoped_refptr<net::URLRequestContextGetter>&
22 url_request_context_getter, 22 url_request_context_getter,
23 const std::string& account_id, 23 const std::string& account_id,
24 const OAuth2TokenService::ScopeSet scopes, 24 const OAuth2TokenService::ScopeSet scopes,
25 const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>& 25 const scoped_refptr<OAuth2TokenServiceRequest::TokenServiceProvider>&
26 token_service_provider, 26 token_service_provider,
27 const std::string& store_birthday, 27 const std::string& store_birthday,
28 ModelType model_type) { 28 ModelType model_type) {
29 return scoped_ptr<AttachmentDownloader>(new AttachmentDownloaderImpl( 29 return std::unique_ptr<AttachmentDownloader>(new AttachmentDownloaderImpl(
30 sync_service_url, url_request_context_getter, account_id, scopes, 30 sync_service_url, url_request_context_getter, account_id, scopes,
31 token_service_provider, store_birthday, model_type)); 31 token_service_provider, store_birthday, model_type));
32 } 32 }
33 33
34 } // namespace syncer 34 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698