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

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

Issue 270633005: Move code from sync/api/attachments to sync/internal_api/attachments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop some unneeded deps and trim DEPS. Created 6 years, 7 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/fake_attachment_uploader.cc
diff --git a/sync/api/attachments/fake_attachment_uploader.cc b/sync/api/attachments/fake_attachment_uploader.cc
deleted file mode 100644
index 7ed929d3089c7163b7bebc537c9b82c0cee29c49..0000000000000000000000000000000000000000
--- a/sync/api/attachments/fake_attachment_uploader.cc
+++ /dev/null
@@ -1,32 +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/fake_attachment_uploader.h"
-
-#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
-#include "sync/api/attachments/attachment.h"
-
-namespace syncer {
-
-FakeAttachmentUploader::FakeAttachmentUploader() {
- DCHECK(CalledOnValidThread());
-}
-
-FakeAttachmentUploader::~FakeAttachmentUploader() {
- DCHECK(CalledOnValidThread());
-}
-
-void FakeAttachmentUploader::UploadAttachment(const Attachment& attachment,
- const UploadCallback& callback) {
- DCHECK(CalledOnValidThread());
- UploadResult result = UPLOAD_SUCCESS;
- AttachmentId updated_id = attachment.GetId();
- // TODO(maniscalco): Update the attachment id with server address information
- // before passing it to the callback.
- base::MessageLoop::current()->PostTask(
- FROM_HERE, base::Bind(callback, result, updated_id));
-}
-
-} // namespace syncer
« no previous file with comments | « sync/api/attachments/fake_attachment_uploader.h ('k') | sync/api/attachments/fake_attachment_uploader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698