Merge "Dump error_detail in dumpsys"
This commit is contained in:
committed by
Android (Google) Code Review
commit
adf20ed758
@@ -33,6 +33,7 @@ const char kAttributeKeyStatusType[] = "key_status_type";
|
||||
const char kAttributeEventType[] = "event_type";
|
||||
const char kAttributeKeyRequestType[] = "key_request_type";
|
||||
const char kAttributeLicenseType[] = "license_type";
|
||||
const char kAttributeErrorDetail[] = "error_detail";
|
||||
|
||||
template <typename T>
|
||||
void SetValue(const T& value, DrmMetricNamedValue* attribute);
|
||||
@@ -239,6 +240,10 @@ void WvMetricsGroupBuilder::AddAttributes(
|
||||
AddAttribute(kAttributeLicenseType, attributes_proto.license_type(),
|
||||
&attribute_vector);
|
||||
}
|
||||
if (attributes_proto.has_error_detail()) {
|
||||
AddAttribute(kAttributeErrorDetail, attributes_proto.error_detail(),
|
||||
&attribute_vector);
|
||||
}
|
||||
|
||||
*attributes = attribute_vector;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user