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

Unified Diff: sync/syncable/model_type.cc

Issue 809073005: replace COMPILE_ASSERT with static_assert in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 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: sync/syncable/model_type.cc
diff --git a/sync/syncable/model_type.cc b/sync/syncable/model_type.cc
index c7a4aa5f2acfe833ea66bc4a704fb6377f4dbebb..3f1abcb408e45ea996aafa4d74ae0ae36ef1bfc1 100644
--- a/sync/syncable/model_type.cc
+++ b/sync/syncable/model_type.cc
@@ -43,9 +43,9 @@ const char* kUserSelectableDataTypeNames[] = {
"tabs",
};
-COMPILE_ASSERT(
+static_assert(
34 == MODEL_TYPE_COUNT,
- update_kUserSelectableDataTypeNames_to_match_UserSelectableTypes);
+ "update kUserSelectableDataTypeName to match UserSelectableTypes");
void AddDefaultFieldValue(ModelType datatype,
sync_pb::EntitySpecifics* specifics) {

Powered by Google App Engine
This is Rietveld 408576698