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

Unified Diff: components/sync/api/attachments/attachment_service.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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/api/attachments/attachment_service.cc
diff --git a/components/sync/api/attachments/attachment_service.cc b/components/sync/api/attachments/attachment_service.cc
deleted file mode 100644
index 32db79c067c19ee0f6898ed271d32b1a690706e5..0000000000000000000000000000000000000000
--- a/components/sync/api/attachments/attachment_service.cc
+++ /dev/null
@@ -1,44 +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/api/attachments/attachment_service.h"
-
-#include <utility>
-
-#include "base/memory/ptr_util.h"
-#include "components/sync/api/attachments/attachment_store.h"
-#include "components/sync/api_impl/attachments/attachment_service_impl.h"
-#include "components/sync/engine/attachments/fake_attachment_downloader.h"
-#include "components/sync/engine/attachments/fake_attachment_uploader.h"
-
-namespace syncer {
-
-// static
-std::unique_ptr<AttachmentService> AttachmentService::Create(
- std::unique_ptr<AttachmentStoreForSync> attachment_store,
- std::unique_ptr<AttachmentUploader> attachment_uploader,
- std::unique_ptr<AttachmentDownloader> attachment_downloader,
- Delegate* delegate,
- const base::TimeDelta& initial_backoff_delay,
- const base::TimeDelta& max_backoff_delay) {
- return base::MakeUnique<AttachmentServiceImpl>(
- std::move(attachment_store), std::move(attachment_uploader),
- std::move(attachment_downloader), delegate, initial_backoff_delay,
- max_backoff_delay);
-}
-
-// static
-std::unique_ptr<AttachmentService> AttachmentService::CreateForTest() {
- std::unique_ptr<AttachmentStore> attachment_store =
- AttachmentStore::CreateInMemoryStore();
- return base::MakeUnique<AttachmentServiceImpl>(
- attachment_store->CreateAttachmentStoreForSync(),
- base::MakeUnique<FakeAttachmentUploader>(),
- base::MakeUnique<FakeAttachmentDownloader>(), nullptr, base::TimeDelta(),
- base::TimeDelta());
-}
-
-AttachmentService::~AttachmentService() {}
-
-} // namespace syncer
« no previous file with comments | « components/sync/api/attachments/attachment_service.h ('k') | components/sync/api/attachments/attachment_service_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698