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

Side by Side Diff: components/sync/driver/backend_migrator.cc

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/driver/backend_migrator.h" 5 #include "components/sync/driver/backend_migrator.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "base/tracked_objects.h" 11 #include "base/tracked_objects.h"
12 #include "components/sync/core/configure_reason.h" 12 #include "components/sync/core/configure_reason.h"
13 #include "components/sync/core/read_transaction.h"
14 #include "components/sync/driver/sync_service.h" 13 #include "components/sync/driver/sync_service.h"
15 #include "components/sync/protocol/sync.pb.h" 14 #include "components/sync/protocol/sync.pb.h"
16 #include "components/sync/syncable/directory.h" 15 #include "components/sync/syncable/directory.h"
16 #include "components/sync/syncable/read_transaction.h"
17 17
18 namespace syncer { 18 namespace syncer {
19 19
20 MigrationObserver::~MigrationObserver() {} 20 MigrationObserver::~MigrationObserver() {}
21 21
22 BackendMigrator::BackendMigrator(const std::string& name, 22 BackendMigrator::BackendMigrator(const std::string& name,
23 UserShare* user_share, 23 UserShare* user_share,
24 SyncService* service, 24 SyncService* service,
25 DataTypeManager* manager, 25 DataTypeManager* manager,
26 const base::Closure& migration_done_callback) 26 const base::Closure& migration_done_callback)
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 ModelTypeSet BackendMigrator::GetPendingMigrationTypesForTest() const { 210 ModelTypeSet BackendMigrator::GetPendingMigrationTypesForTest() const {
211 return to_migrate_; 211 return to_migrate_;
212 } 212 }
213 213
214 #undef SDVLOG 214 #undef SDVLOG
215 215
216 #undef SLOG 216 #undef SLOG
217 217
218 }; // namespace syncer 218 }; // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core_impl/test/test_user_share.cc ('k') | components/sync/driver/backend_migrator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698