Index: sync/internal_api/debug_info_event_listener.cc |
diff --git a/sync/internal_api/debug_info_event_listener.cc b/sync/internal_api/debug_info_event_listener.cc |
index 1bd83e42af3d43c3cc1cf5f1660523b43e0d7fae..107b10e0ebad76486a96df2437cd2b75eae8e589 100644 |
--- a/sync/internal_api/debug_info_event_listener.cc |
+++ b/sync/internal_api/debug_info_event_listener.cc |
@@ -194,6 +194,7 @@ base::WeakPtr<DataTypeDebugInfoListener> DebugInfoEventListener::GetWeakPtr() { |
void DebugInfoEventListener::OnDataTypeAssociationComplete( |
const DataTypeAssociationStats& association_stats) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
+ DCHECK(ProtocolTypes().Has(association_stats.model_type)); |
sync_pb::DebugEventInfo association_event; |
sync_pb::DatatypeAssociationStats* datatype_stats = |
association_event.mutable_datatype_association_stats(); |