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

Unified Diff: components/sync/model/model_type_store.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
« no previous file with comments | « components/sync/model/model_type_change_processor.h ('k') | components/sync/model/model_type_sync_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/model_type_store.h
diff --git a/components/sync/model/model_type_store.h b/components/sync/model/model_type_store.h
index dfe9e3fa4f023fc1feb4719c6fe06e31f7d456cf..3eac0a6304e228b174c4202d0f760b0f2a0c375f 100644
--- a/components/sync/model/model_type_store.h
+++ b/components/sync/model/model_type_store.h
@@ -106,23 +106,23 @@ class ModelTypeStore {
std::unique_ptr<MetadataChangeList> metadata_change_list_;
};
- typedef std::vector<Record> RecordList;
- typedef std::vector<std::string> IdList;
-
- typedef base::Callback<void(Result result,
- std::unique_ptr<ModelTypeStore> store)>
- InitCallback;
- typedef base::Callback<void(Result result)> CallbackWithResult;
- typedef base::Callback<void(Result result,
- std::unique_ptr<RecordList> data_records,
- std::unique_ptr<IdList> missing_id_list)>
- ReadDataCallback;
- typedef base::Callback<void(Result result,
- std::unique_ptr<RecordList> data_records)>
- ReadAllDataCallback;
- typedef base::Callback<void(base::Optional<ModelError> error,
- std::unique_ptr<MetadataBatch> metadata_batch)>
- ReadMetadataCallback;
+ using RecordList = std::vector<Record>;
+ using IdList = std::vector<std::string>;
+
+ using InitCallback =
+ base::Callback<void(Result result,
+ std::unique_ptr<ModelTypeStore> store)>;
+ using CallbackWithResult = base::Callback<void(Result result)>;
+ using ReadDataCallback =
+ base::Callback<void(Result result,
+ std::unique_ptr<RecordList> data_records,
+ std::unique_ptr<IdList> missing_id_list)>;
+ using ReadAllDataCallback =
+ base::Callback<void(Result result,
+ std::unique_ptr<RecordList> data_records)>;
+ using ReadMetadataCallback =
+ base::Callback<void(base::Optional<ModelError> error,
+ std::unique_ptr<MetadataBatch> metadata_batch)>;
// CreateStore takes |path| and |blocking_task_runner|. Here is how to get
// task runner in production code:
« no previous file with comments | « components/sync/model/model_type_change_processor.h ('k') | components/sync/model/model_type_sync_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698