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

Unified Diff: sync/api/attachments/attachment_downloader.cc

Issue 355093002: Consolidate attachment URL construction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move static method declaration and definition. Created 6 years, 6 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/api/attachments/attachment_downloader.cc
diff --git a/sync/api/attachments/attachment_downloader.cc b/sync/api/attachments/attachment_downloader.cc
index 7fd32cd0097922bdbd766d4bb8dc091d3a189747..8b07ab96d8f22f97e159fecf593e7e6498124e8a 100644
--- a/sync/api/attachments/attachment_downloader.cc
+++ b/sync/api/attachments/attachment_downloader.cc
@@ -15,7 +15,7 @@ AttachmentDownloader::~AttachmentDownloader() {
// It is introduced to avoid SYNC_EXPORT-ing AttachmentDownloaderImpl since it
// inherits from OAuth2TokenService::Consumer which is not exported.
scoped_ptr<AttachmentDownloader> AttachmentDownloader::Create(
- const std::string& url_prefix,
+ const GURL& sync_service_url,
const scoped_refptr<net::URLRequestContextGetter>&
url_request_context_getter,
const std::string& account_id,
@@ -23,7 +23,7 @@ scoped_ptr<AttachmentDownloader> AttachmentDownloader::Create(
scoped_ptr<OAuth2TokenServiceRequest::TokenServiceProvider>
token_service_provider) {
return scoped_ptr<AttachmentDownloader>(
- new AttachmentDownloaderImpl(url_prefix,
+ new AttachmentDownloaderImpl(sync_service_url,
url_request_context_getter,
account_id,
scopes,
« no previous file with comments | « sync/api/attachments/attachment_downloader.h ('k') | sync/internal_api/attachments/attachment_downloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698