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

Side by Side Diff: components/sync/base/progress_marker_map.h

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 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 #ifndef COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ 5 #ifndef COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_
6 #define COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ 6 #define COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "components/sync/base/model_type.h" 12 #include "components/sync/base/model_type.h"
13 13
14 namespace base { 14 namespace base {
15 class DictionaryValue; 15 class DictionaryValue;
16 } 16 }
17 17
18 namespace syncer { 18 namespace syncer {
19 19
20 // A container that maps ModelType to serialized 20 // A container that maps ModelType to serialized
21 // DataTypeProgressMarkers. 21 // DataTypeProgressMarkers.
22 typedef std::map<ModelType, std::string> ProgressMarkerMap; 22 using ProgressMarkerMap = std::map<ModelType, std::string>;
23 23
24 std::unique_ptr<base::DictionaryValue> ProgressMarkerMapToValue( 24 std::unique_ptr<base::DictionaryValue> ProgressMarkerMapToValue(
25 const ProgressMarkerMap& marker_map); 25 const ProgressMarkerMap& marker_map);
26 26
27 } // namespace syncer 27 } // namespace syncer
28 28
29 #endif // COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_ 29 #endif // COMPONENTS_SYNC_BASE_PROGRESS_MARKER_MAP_H_
OLDNEW
« no previous file with comments | « components/sync/base/ordinal_unittest.cc ('k') | components/sync/base/proto_value_ptr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698