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

Unified Diff: components/sync/core_impl/attachments/fake_attachment_uploader.cc

Issue 2399953002: [Sync] Move attachments code out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 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: components/sync/core_impl/attachments/fake_attachment_uploader.cc
diff --git a/components/sync/core_impl/attachments/fake_attachment_uploader.cc b/components/sync/core_impl/attachments/fake_attachment_uploader.cc
deleted file mode 100644
index ce72679b85bbfcb77a012eaf0bb1fd48537d9d26..0000000000000000000000000000000000000000
--- a/components/sync/core_impl/attachments/fake_attachment_uploader.cc
+++ /dev/null
@@ -1,35 +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 "components/sync/core/attachments/fake_attachment_uploader.h"
-
-#include "base/bind.h"
-#include "base/location.h"
-#include "base/single_thread_task_runner.h"
-#include "base/threading/thread_task_runner_handle.h"
-#include "components/sync/api/attachments/attachment.h"
-#include "components/sync/protocol/sync.pb.h"
-
-namespace syncer {
-
-FakeAttachmentUploader::FakeAttachmentUploader() {
- DCHECK(CalledOnValidThread());
-}
-
-FakeAttachmentUploader::~FakeAttachmentUploader() {
- DCHECK(CalledOnValidThread());
-}
-
-void FakeAttachmentUploader::UploadAttachment(const Attachment& attachment,
- const UploadCallback& callback) {
- DCHECK(CalledOnValidThread());
- DCHECK(!attachment.GetId().GetProto().unique_id().empty());
-
- UploadResult result = UPLOAD_SUCCESS;
- AttachmentId id = attachment.GetId();
- base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(callback, result, id));
-}
-
-} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698