| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/glue/sync_backend_registrar.h" | 5 #include "components/sync_driver/glue/sync_backend_registrar.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "components/sync/core/user_share.h" |
| 13 #include "components/sync_driver/change_processor.h" | 14 #include "components/sync_driver/change_processor.h" |
| 14 #include "components/sync_driver/sync_client.h" | 15 #include "components/sync_driver/sync_client.h" |
| 15 #include "sync/internal_api/public/user_share.h" | |
| 16 | 16 |
| 17 namespace browser_sync { | 17 namespace browser_sync { |
| 18 | 18 |
| 19 SyncBackendRegistrar::SyncBackendRegistrar( | 19 SyncBackendRegistrar::SyncBackendRegistrar( |
| 20 const std::string& name, | 20 const std::string& name, |
| 21 sync_driver::SyncClient* sync_client, | 21 sync_driver::SyncClient* sync_client, |
| 22 std::unique_ptr<base::Thread> sync_thread, | 22 std::unique_ptr<base::Thread> sync_thread, |
| 23 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, | 23 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, |
| 24 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, | 24 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, |
| 25 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread) | 25 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread) |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 syncer::ModelSafeGroup SyncBackendRegistrar::GetInitialGroupForType( | 373 syncer::ModelSafeGroup SyncBackendRegistrar::GetInitialGroupForType( |
| 374 syncer::ModelType type) const { | 374 syncer::ModelType type) const { |
| 375 if (non_blocking_types_.Has(type)) | 375 if (non_blocking_types_.Has(type)) |
| 376 return syncer::GROUP_NON_BLOCKING; | 376 return syncer::GROUP_NON_BLOCKING; |
| 377 else | 377 else |
| 378 return syncer::GROUP_PASSIVE; | 378 return syncer::GROUP_PASSIVE; |
| 379 } | 379 } |
| 380 | 380 |
| 381 } // namespace browser_sync | 381 } // namespace browser_sync |
| OLD | NEW |