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

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

Issue 2479093002: Migrate more files to histogram_macros.h from histogram.h. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « components/profile_metrics/counts.cc ('k') | components/sync/engine_impl/model_type_worker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/metrics/histogram.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "components/sync/base/cryptographer.h" 16 #include "components/sync/base/cryptographer.h"
17 #include "components/sync/engine/activation_context.h" 17 #include "components/sync/engine/activation_context.h"
18 #include "components/sync/engine/commit_queue.h" 18 #include "components/sync/engine/commit_queue.h"
19 #include "components/sync/engine/model_type_processor.h" 19 #include "components/sync/engine/model_type_processor.h"
20 #include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h" 20 #include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h"
21 #include "components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter .h" 21 #include "components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter .h"
22 #include "components/sync/engine_impl/directory_commit_contributor.h" 22 #include "components/sync/engine_impl/directory_commit_contributor.h"
23 #include "components/sync/engine_impl/directory_update_handler.h" 23 #include "components/sync/engine_impl/directory_update_handler.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 346
347 ModelTypeSet ModelTypeRegistry::GetEnabledNonBlockingTypes() const { 347 ModelTypeSet ModelTypeRegistry::GetEnabledNonBlockingTypes() const {
348 ModelTypeSet enabled_non_blocking_types; 348 ModelTypeSet enabled_non_blocking_types;
349 for (const auto& worker : model_type_workers_) { 349 for (const auto& worker : model_type_workers_) {
350 enabled_non_blocking_types.Put(worker->GetModelType()); 350 enabled_non_blocking_types.Put(worker->GetModelType());
351 } 351 }
352 return enabled_non_blocking_types; 352 return enabled_non_blocking_types;
353 } 353 }
354 354
355 } // namespace syncer 355 } // namespace syncer
OLDNEW
« no previous file with comments | « components/profile_metrics/counts.cc ('k') | components/sync/engine_impl/model_type_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698