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

Side by Side Diff: components/sync/base/sync_prefs.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_SYNC_PREFS_H_ 5 #ifndef COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
6 #define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ 6 #define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // configuration management. 210 // configuration management.
211 BooleanPrefMember pref_sync_managed_; 211 BooleanPrefMember pref_sync_managed_;
212 212
213 // Groups of prefs that always have the same value as a "master" pref. 213 // Groups of prefs that always have the same value as a "master" pref.
214 // For example, the APPS group has {APP_NOTIFICATIONS, APP_SETTINGS} 214 // For example, the APPS group has {APP_NOTIFICATIONS, APP_SETTINGS}
215 // (as well as APPS, but that is implied), so 215 // (as well as APPS, but that is implied), so
216 // pref_groups_[APPS] = { APP_NOTIFICATIONS, 216 // pref_groups_[APPS] = { APP_NOTIFICATIONS,
217 // APP_SETTINGS } 217 // APP_SETTINGS }
218 // pref_groups_[EXTENSIONS] = { EXTENSION_SETTINGS } 218 // pref_groups_[EXTENSIONS] = { EXTENSION_SETTINGS }
219 // etc. 219 // etc.
220 typedef std::map<ModelType, ModelTypeSet> PrefGroupsMap; 220 using PrefGroupsMap = std::map<ModelType, ModelTypeSet>;
221 PrefGroupsMap pref_groups_; 221 PrefGroupsMap pref_groups_;
222 222
223 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); 223 DISALLOW_COPY_AND_ASSIGN(SyncPrefs);
224 }; 224 };
225 225
226 } // namespace syncer 226 } // namespace syncer
227 227
228 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ 228 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_
OLDNEW
« no previous file with comments | « components/sync/base/proto_value_ptr_unittest.cc ('k') | components/sync/device_info/device_count_metrics_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698