Index: components/sync/driver/model_association_manager.cc |
diff --git a/components/sync/driver/model_association_manager.cc b/components/sync/driver/model_association_manager.cc |
index 43f03a529157ae6275a6d09e7759c25223432571..86c86aef74d26f4cf295b1bdc9e8f5d09f4bb044 100644 |
--- a/components/sync/driver/model_association_manager.cc |
+++ b/components/sync/driver/model_association_manager.cc |
@@ -382,9 +382,10 @@ void ModelAssociationManager::ModelAssociationDone(State new_state) { |
DataTypeController* dtc = (*it).second.get(); |
if (associating_types_.Has(dtc->type()) && |
dtc->state() != DataTypeController::NOT_RUNNING) { |
+ // TODO(wychen): enum uma should be strongly typed. crbug.com/661401 |
UMA_HISTOGRAM_ENUMERATION("Sync.ConfigureFailed", |
ModelTypeToHistogramInt(dtc->type()), |
- MODEL_TYPE_COUNT); |
+ static_cast<int>(MODEL_TYPE_COUNT)); |
StopDatatype(SyncError(FROM_HERE, SyncError::DATATYPE_ERROR, |
"Association timed out.", dtc->type()), |
dtc); |