OLD | NEW |
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 Loading... |
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 |
OLD | NEW |