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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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_store.cc
diff --git a/sync/api/attachments/attachment_store.cc b/components/sync/api/attachments/attachment_store.cc
similarity index 89%
rename from sync/api/attachments/attachment_store.cc
rename to components/sync/api/attachments/attachment_store.cc
index c044e9b0e5c5467e7f448c739ae9a558a5f4428a..ee575051b54bb78e8009ec6244c2e097a1cd7e9b 100644
--- a/sync/api/attachments/attachment_store.cc
+++ b/components/sync/api/attachments/attachment_store.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/api/attachments/attachment_store.h"
+#include "components/sync/api/attachments/attachment_store.h"
#include <utility>
@@ -12,26 +12,23 @@
#include "base/message_loop/message_loop.h"
#include "base/sequenced_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "sync/internal_api/public/attachments/attachment_store_frontend.h"
-#include "sync/internal_api/public/attachments/in_memory_attachment_store.h"
-#include "sync/internal_api/public/attachments/on_disk_attachment_store.h"
+#include "components/sync/core/attachments/attachment_store_frontend.h"
+#include "components/sync/core/attachments/in_memory_attachment_store.h"
+#include "components/sync/core/attachments/on_disk_attachment_store.h"
namespace syncer {
namespace {
-void NoOpDropCallback(const AttachmentStore::Result& result) {
-}
+void NoOpDropCallback(const AttachmentStore::Result& result) {}
}
AttachmentStore::AttachmentStore(
const scoped_refptr<AttachmentStoreFrontend>& frontend,
Component component)
- : frontend_(frontend), component_(component) {
-}
+ : frontend_(frontend), component_(component) {}
-AttachmentStore::~AttachmentStore() {
-}
+AttachmentStore::~AttachmentStore() {}
void AttachmentStore::Read(const AttachmentIdList& ids,
const ReadCallback& callback) {
@@ -116,11 +113,9 @@ AttachmentStoreForSync::AttachmentStoreForSync(
Component consumer_component,
Component sync_component)
: AttachmentStore(frontend, consumer_component),
- sync_component_(sync_component) {
-}
+ sync_component_(sync_component) {}
-AttachmentStoreForSync::~AttachmentStoreForSync() {
-}
+AttachmentStoreForSync::~AttachmentStoreForSync() {}
void AttachmentStoreForSync::SetSyncReference(const AttachmentIdList& ids) {
frontend()->SetReference(sync_component_, ids);
« no previous file with comments | « components/sync/api/attachments/attachment_store.h ('k') | components/sync/api/attachments/attachment_store_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698