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

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

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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/commit_processor.h" 5 #include "components/sync/engine_impl/commit_processor.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "components/sync/engine_impl/commit_contribution.h" 11 #include "components/sync/engine_impl/commit_contribution.h"
12 #include "components/sync/engine_impl/commit_contributor.h" 12 #include "components/sync/engine_impl/commit_contributor.h"
13 #include "components/sync/protocol/sync.pb.h" 13 #include "components/sync/protocol/sync.pb.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 16
17 typedef std::map<ModelType, size_t> TypeToIndexMap; 17 using TypeToIndexMap = std::map<ModelType, size_t>;
18 18
19 CommitProcessor::CommitProcessor(CommitContributorMap* commit_contributor_map) 19 CommitProcessor::CommitProcessor(CommitContributorMap* commit_contributor_map)
20 : commit_contributor_map_(commit_contributor_map) {} 20 : commit_contributor_map_(commit_contributor_map) {}
21 21
22 CommitProcessor::~CommitProcessor() {} 22 CommitProcessor::~CommitProcessor() {}
23 23
24 void CommitProcessor::GatherCommitContributions( 24 void CommitProcessor::GatherCommitContributions(
25 ModelTypeSet commit_types, 25 ModelTypeSet commit_types,
26 size_t max_entries, 26 size_t max_entries,
27 bool cookie_jar_mismatch, 27 bool cookie_jar_mismatch,
(...skipping 26 matching lines...) Expand all
54 } 54 }
55 if (num_entries >= max_entries) { 55 if (num_entries >= max_entries) {
56 DCHECK_EQ(num_entries, max_entries) 56 DCHECK_EQ(num_entries, max_entries)
57 << "Number of commit entries exceeeds maximum"; 57 << "Number of commit entries exceeeds maximum";
58 break; 58 break;
59 } 59 }
60 } 60 }
61 } 61 }
62 62
63 } // namespace syncer 63 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/commit.h ('k') | components/sync/engine_impl/debug_info_event_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698