Index: c_metrics_library.cc |
diff --git a/c_metrics_library.cc b/c_metrics_library.cc |
index 3450918c4757ec9e48a10128142af5da9e4355ae..8946699c30f1d1ea388859657f5175a0f38f2757 100644 |
--- a/c_metrics_library.cc |
+++ b/c_metrics_library.cc |
@@ -51,6 +51,14 @@ extern "C" int CMetricsLibrarySendUserActionToUMA(CMetricsLibrary handle, |
return lib->SendUserActionToUMA(std::string(action)); |
} |
+extern "C" int CMetricsLibrarySendCrashToUMA(CMetricsLibrary handle, |
+ const char* crash_kind) { |
+ MetricsLibrary* lib = reinterpret_cast<MetricsLibrary*>(handle); |
+ if (lib == NULL) |
+ return 0; |
+ return lib->SendCrashToUMA(crash_kind); |
+} |
+ |
extern "C" int CMetricsLibraryAreMetricsEnabled(CMetricsLibrary handle) { |
MetricsLibrary* lib = reinterpret_cast<MetricsLibrary*>(handle); |
if (lib == NULL) |