| Index: components/sync/core_impl/attachments/attachment_service_proxy.cc
|
| diff --git a/sync/internal_api/attachments/attachment_service_proxy.cc b/components/sync/core_impl/attachments/attachment_service_proxy.cc
|
| similarity index 84%
|
| rename from sync/internal_api/attachments/attachment_service_proxy.cc
|
| rename to components/sync/core_impl/attachments/attachment_service_proxy.cc
|
| index 825057fbebbbdd86adf115d96ef2bf754b25eb4f..0299f97c05878c358a14f03240f34eabcdcd196a 100644
|
| --- a/sync/internal_api/attachments/attachment_service_proxy.cc
|
| +++ b/components/sync/core_impl/attachments/attachment_service_proxy.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "sync/internal_api/public/attachments/attachment_service_proxy.h"
|
| +#include "components/sync/core/attachments/attachment_service_proxy.h"
|
|
|
| #include "base/bind.h"
|
| #include "base/message_loop/message_loop.h"
|
| @@ -28,8 +28,7 @@ void ProxyGetOrDownloadCallback(
|
|
|
| } // namespace
|
|
|
| -AttachmentServiceProxy::AttachmentServiceProxy() {
|
| -}
|
| +AttachmentServiceProxy::AttachmentServiceProxy() {}
|
|
|
| AttachmentServiceProxy::AttachmentServiceProxy(
|
| const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner,
|
| @@ -49,8 +48,7 @@ AttachmentServiceProxy::AttachmentServiceProxy(
|
| AttachmentServiceProxy::AttachmentServiceProxy(
|
| const AttachmentServiceProxy& other) = default;
|
|
|
| -AttachmentServiceProxy::~AttachmentServiceProxy() {
|
| -}
|
| +AttachmentServiceProxy::~AttachmentServiceProxy() {}
|
|
|
| void AttachmentServiceProxy::GetOrDownloadAttachments(
|
| const AttachmentIdList& attachment_ids,
|
| @@ -58,14 +56,10 @@ void AttachmentServiceProxy::GetOrDownloadAttachments(
|
| DCHECK(wrapped_task_runner_.get());
|
| GetOrDownloadCallback proxy_callback =
|
| base::Bind(&ProxyGetOrDownloadCallback,
|
| - base::ThreadTaskRunnerHandle::Get(),
|
| - callback);
|
| + base::ThreadTaskRunnerHandle::Get(), callback);
|
| wrapped_task_runner_->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&AttachmentService::GetOrDownloadAttachments,
|
| - core_,
|
| - attachment_ids,
|
| - proxy_callback));
|
| + FROM_HERE, base::Bind(&AttachmentService::GetOrDownloadAttachments, core_,
|
| + attachment_ids, proxy_callback));
|
| }
|
|
|
| void AttachmentServiceProxy::UploadAttachments(
|
| @@ -78,11 +72,9 @@ void AttachmentServiceProxy::UploadAttachments(
|
|
|
| AttachmentServiceProxy::Core::Core(
|
| const base::WeakPtr<syncer::AttachmentService>& wrapped)
|
| - : wrapped_(wrapped) {
|
| -}
|
| + : wrapped_(wrapped) {}
|
|
|
| -AttachmentServiceProxy::Core::~Core() {
|
| -}
|
| +AttachmentServiceProxy::Core::~Core() {}
|
|
|
| void AttachmentServiceProxy::Core::GetOrDownloadAttachments(
|
| const AttachmentIdList& attachment_ids,
|
|
|