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

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

Issue 436373002: Move non-API code out of sync/api/attachments/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR feedback. Created 6 years, 4 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
« no previous file with comments | « sync/api/attachments/attachment_downloader.h ('k') | sync/api/attachments/attachment_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/attachments/attachment_downloader.cc
diff --git a/sync/api/attachments/attachment_downloader.cc b/sync/api/attachments/attachment_downloader.cc
deleted file mode 100644
index 8b07ab96d8f22f97e159fecf593e7e6498124e8a..0000000000000000000000000000000000000000
--- a/sync/api/attachments/attachment_downloader.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sync/api/attachments/attachment_downloader.h"
-
-#include "sync/internal_api/public/attachments/attachment_downloader_impl.h"
-
-namespace syncer {
-
-AttachmentDownloader::~AttachmentDownloader() {
-}
-
-// Factory function for creating AttachmentDownloaderImpl.
-// 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 GURL& sync_service_url,
- const scoped_refptr<net::URLRequestContextGetter>&
- url_request_context_getter,
- const std::string& account_id,
- const OAuth2TokenService::ScopeSet scopes,
- scoped_ptr<OAuth2TokenServiceRequest::TokenServiceProvider>
- token_service_provider) {
- return scoped_ptr<AttachmentDownloader>(
- new AttachmentDownloaderImpl(sync_service_url,
- url_request_context_getter,
- account_id,
- scopes,
- token_service_provider.Pass()));
-}
-
-} // namespace syncer
« no previous file with comments | « sync/api/attachments/attachment_downloader.h ('k') | sync/api/attachments/attachment_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698