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

Unified Diff: components/sync/driver/data_type_controller.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 side-by-side diff with in-line comments
Download patch
Index: components/sync/driver/data_type_controller.h
diff --git a/components/sync/driver/data_type_controller.h b/components/sync/driver/data_type_controller.h
index 511e889eabf1d292adc406fa4ccce37dd4d500f3..ed0b6f711ba9a567be6e6e114208317dfb826d94 100644
--- a/components/sync/driver/data_type_controller.h
+++ b/components/sync/driver/data_type_controller.h
@@ -61,21 +61,19 @@ class DataTypeController : public base::SupportsWeakPtr<DataTypeController> {
MAX_CONFIGURE_RESULT
};
- typedef base::Callback<
- void(ConfigureResult, const SyncMergeResult&, const SyncMergeResult&)>
- StartCallback;
+ using StartCallback = base::Callback<
+ void(ConfigureResult, const SyncMergeResult&, const SyncMergeResult&)>;
- typedef base::Callback<void(ModelType, const SyncError&)> ModelLoadCallback;
+ using ModelLoadCallback = base::Callback<void(ModelType, const SyncError&)>;
- typedef base::Callback<void(const ModelType,
- std::unique_ptr<base::ListValue>)>
- AllNodesCallback;
+ using AllNodesCallback =
+ base::Callback<void(const ModelType, std::unique_ptr<base::ListValue>)>;
- typedef base::Callback<void(ModelType, const StatusCounters&)>
- StatusCountersCallback;
+ using StatusCountersCallback =
+ base::Callback<void(ModelType, const StatusCounters&)>;
- typedef std::map<ModelType, std::unique_ptr<DataTypeController>> TypeMap;
- typedef std::map<ModelType, DataTypeController::State> StateMap;
+ using TypeMap = std::map<ModelType, std::unique_ptr<DataTypeController>>;
+ using StateMap = std::map<ModelType, DataTypeController::State>;
// Returns true if the start result should trigger an unrecoverable error.
// Public so unit tests can use this function as well.
« no previous file with comments | « components/sync/device_info/local_device_info_provider.h ('k') | components/sync/driver/data_type_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698