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

Side by Side Diff: components/sync/engine_impl/model_type_worker.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
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_worker.h" 5 #include "components/sync/engine_impl/model_type_worker.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/format_macros.h" 13 #include "base/format_macros.h"
14 #include "base/guid.h" 14 #include "base/guid.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram_macros.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "components/sync/base/time.h" 19 #include "components/sync/base/time.h"
20 #include "components/sync/engine/model_type_processor.h" 20 #include "components/sync/engine/model_type_processor.h"
21 #include "components/sync/engine_impl/commit_contribution.h" 21 #include "components/sync/engine_impl/commit_contribution.h"
22 #include "components/sync/engine_impl/non_blocking_type_commit_contribution.h" 22 #include "components/sync/engine_impl/non_blocking_type_commit_contribution.h"
23 #include "components/sync/engine_impl/worker_entity_tracker.h" 23 #include "components/sync/engine_impl/worker_entity_tracker.h"
24 #include "components/sync/syncable/syncable_util.h" 24 #include "components/sync/syncable/syncable_util.h"
25 25
26 namespace syncer { 26 namespace syncer {
27 27
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 return entity_ptr; 469 return entity_ptr;
470 } 470 }
471 471
472 WorkerEntityTracker* ModelTypeWorker::GetOrCreateEntityTracker( 472 WorkerEntityTracker* ModelTypeWorker::GetOrCreateEntityTracker(
473 const EntityData& data) { 473 const EntityData& data) {
474 WorkerEntityTracker* entity = GetEntityTracker(data.client_tag_hash); 474 WorkerEntityTracker* entity = GetEntityTracker(data.client_tag_hash);
475 return entity ? entity : CreateEntityTracker(data); 475 return entity ? entity : CreateEntityTracker(data);
476 } 476 }
477 477
478 } // namespace syncer 478 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/model_type_registry.cc ('k') | components/sync/model/data_type_error_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698