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 <algorithm> | 7 #include <algorithm> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/compiler_specific.h" | |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
14 #include "components/sync/core/user_share.h" | 13 #include "components/sync/core/user_share.h" |
15 #include "components/sync/driver/change_processor.h" | 14 #include "components/sync/driver/change_processor.h" |
16 #include "components/sync/driver/sync_client.h" | 15 #include "components/sync/driver/sync_client.h" |
17 | 16 |
18 using syncer::ModelSafeGroup; | 17 using syncer::ModelSafeGroup; |
19 using syncer::ModelSafeRoutingInfo; | 18 using syncer::ModelSafeRoutingInfo; |
20 using syncer::ModelType; | 19 using syncer::ModelType; |
21 using syncer::ModelTypeSet; | 20 using syncer::ModelTypeSet; |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 return sync_thread_.get(); | 381 return sync_thread_.get(); |
383 } | 382 } |
384 | 383 |
385 ModelSafeGroup SyncBackendRegistrar::GetInitialGroupForType( | 384 ModelSafeGroup SyncBackendRegistrar::GetInitialGroupForType( |
386 ModelType type) const { | 385 ModelType type) const { |
387 return non_blocking_types_.Has(type) ? syncer::GROUP_NON_BLOCKING | 386 return non_blocking_types_.Has(type) ? syncer::GROUP_NON_BLOCKING |
388 : syncer::GROUP_PASSIVE; | 387 : syncer::GROUP_PASSIVE; |
389 } | 388 } |
390 | 389 |
391 } // namespace browser_sync | 390 } // namespace browser_sync |
OLD | NEW |