Index: sync/syncable/nigori_util.cc |
diff --git a/sync/syncable/nigori_util.cc b/sync/syncable/nigori_util.cc |
index b43acfaef1959619c475df824e7247c117bf0440..18b8fce9dadff5ad37bd3c535cdf067512cf134b 100644 |
--- a/sync/syncable/nigori_util.cc |
+++ b/sync/syncable/nigori_util.cc |
@@ -243,7 +243,7 @@ void UpdateNigoriFromEncryptedTypes(ModelTypeSet encrypted_types, |
bool encrypt_everything, |
sync_pb::NigoriSpecifics* nigori) { |
nigori->set_encrypt_everything(encrypt_everything); |
- COMPILE_ASSERT(34 == MODEL_TYPE_COUNT, UpdateEncryptedTypes); |
+ static_assert(34 == MODEL_TYPE_COUNT, "update encrypted types"); |
nigori->set_encrypt_bookmarks( |
encrypted_types.Has(BOOKMARKS)); |
nigori->set_encrypt_preferences( |
@@ -279,7 +279,7 @@ ModelTypeSet GetEncryptedTypesFromNigori( |
return ModelTypeSet::All(); |
ModelTypeSet encrypted_types; |
- COMPILE_ASSERT(34 == MODEL_TYPE_COUNT, UpdateEncryptedTypes); |
+ static_assert(34 == MODEL_TYPE_COUNT, "update encrypted types"); |
if (nigori.encrypt_bookmarks()) |
encrypted_types.Put(BOOKMARKS); |
if (nigori.encrypt_preferences()) |