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

Unified Diff: sync/internal_api/attachments/attachment_service_proxy.cc

Issue 973513002: [Sync] Remove DropAttachments from AttachmentService and SyncData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix call count. Created 5 years, 10 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/attachments/attachment_service_proxy.cc
diff --git a/sync/internal_api/attachments/attachment_service_proxy.cc b/sync/internal_api/attachments/attachment_service_proxy.cc
index 6b1040bafdf3a0aa6cbe5b367384b958a3d76057..92104ced5dbb6c6124bdbb4d00df445fea7220a7 100644
--- a/sync/internal_api/attachments/attachment_service_proxy.cc
+++ b/sync/internal_api/attachments/attachment_service_proxy.cc
@@ -26,15 +26,6 @@ void ProxyGetOrDownloadCallback(
FROM_HERE, base::Bind(callback, result, base::Passed(&attachments)));
}
-// Invokes |callback| with |result| and |attachments| in the |task_runner|
-// thread.
-void ProxyDropCallback(
- const scoped_refptr<base::SequencedTaskRunner>& task_runner,
- const AttachmentService::DropCallback& callback,
- const AttachmentService::DropResult& result) {
- task_runner->PostTask(FROM_HERE, base::Bind(callback, result));
-}
-
} // namespace
AttachmentServiceProxy::AttachmentServiceProxy() {
@@ -78,19 +69,6 @@ void AttachmentServiceProxy::GetOrDownloadAttachments(
proxy_callback));
}
-void AttachmentServiceProxy::DropAttachments(
- const AttachmentIdList& attachment_ids,
- const DropCallback& callback) {
- DCHECK(wrapped_task_runner_.get());
- DropCallback proxy_callback = base::Bind(
- &ProxyDropCallback, base::ThreadTaskRunnerHandle::Get(), callback);
- wrapped_task_runner_->PostTask(FROM_HERE,
- base::Bind(&AttachmentService::DropAttachments,
- core_,
- attachment_ids,
- proxy_callback));
-}
-
void AttachmentServiceProxy::UploadAttachments(
const AttachmentIdSet& attachment_ids) {
DCHECK(wrapped_task_runner_.get());
@@ -120,15 +98,6 @@ void AttachmentServiceProxy::Core::GetOrDownloadAttachments(
wrapped_->GetOrDownloadAttachments(attachment_ids, callback);
}
-void AttachmentServiceProxy::Core::DropAttachments(
- const AttachmentIdList& attachment_ids,
- const DropCallback& callback) {
- if (!wrapped_) {
- return;
- }
- wrapped_->DropAttachments(attachment_ids, callback);
-}
-
void AttachmentServiceProxy::Core::UploadAttachments(
const AttachmentIdSet& attachment_ids) {
if (!wrapped_) {

Powered by Google App Engine
This is Rietveld 408576698