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

Side by Side Diff: components/sync/engine_impl/model_type_registry.cc

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/engine_impl/model_type_registry.h" 5 #include "components/sync/engine_impl/model_type_registry.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "components/sync/base/cryptographer.h" 15 #include "components/sync/base/cryptographer.h"
16 #include "components/sync/core/activation_context.h" 16 #include "components/sync/engine/activation_context.h"
17 #include "components/sync/core/model_type_processor.h"
18 #include "components/sync/engine/commit_queue.h" 17 #include "components/sync/engine/commit_queue.h"
18 #include "components/sync/engine/model_type_processor.h"
19 #include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h" 19 #include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h"
20 #include "components/sync/engine_impl/directory_commit_contributor.h" 20 #include "components/sync/engine_impl/directory_commit_contributor.h"
21 #include "components/sync/engine_impl/directory_update_handler.h" 21 #include "components/sync/engine_impl/directory_update_handler.h"
22 #include "components/sync/engine_impl/model_type_worker.h" 22 #include "components/sync/engine_impl/model_type_worker.h"
23 23
24 namespace syncer { 24 namespace syncer {
25 25
26 namespace { 26 namespace {
27 27
28 class CommitQueueProxy : public CommitQueue { 28 class CommitQueueProxy : public CommitQueue {
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 ModelTypeSet enabled_non_blocking_types; 304 ModelTypeSet enabled_non_blocking_types;
305 for (ScopedVector<ModelTypeWorker>::const_iterator it = 305 for (ScopedVector<ModelTypeWorker>::const_iterator it =
306 model_type_workers_.begin(); 306 model_type_workers_.begin();
307 it != model_type_workers_.end(); ++it) { 307 it != model_type_workers_.end(); ++it) {
308 enabled_non_blocking_types.Put((*it)->GetModelType()); 308 enabled_non_blocking_types.Put((*it)->GetModelType());
309 } 309 }
310 return enabled_non_blocking_types; 310 return enabled_non_blocking_types;
311 } 311 }
312 312
313 } // namespace syncer 313 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/model_type_registry.h ('k') | components/sync/engine_impl/model_type_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698