UMA log for audio_device Init and Start(Playout|Recording). Make Init return a more specific error code, if possible.

BUG=webrtc:5761
R=asapersson@webrtc.org, henrika@webrtc.org

Review URL: https://codereview.webrtc.org/2103863004 .

Cr-Commit-Position: refs/heads/master@{#13361}
diff --git a/webrtc/system_wrappers/include/metrics.h b/webrtc/system_wrappers/include/metrics.h
index d5e5492..0fee344 100644
--- a/webrtc/system_wrappers/include/metrics.h
+++ b/webrtc/system_wrappers/include/metrics.h
@@ -125,6 +125,14 @@
 #define RTC_LOGGED_HISTOGRAM_PERCENTAGE(name, sample) \
   RTC_LOGGED_HISTOGRAM_ENUMERATION(name, sample, 101)
 
+// Histogram for booleans.
+#define RTC_HISTOGRAM_BOOLEAN(name, sample) \
+  RTC_HISTOGRAM_ENUMERATION(name, sample, 2)
+
+// RTC_HISTOGRAM_BOOLEAN with logging.
+#define RTC_LOGGED_HISTOGRAM_BOOLEAN(name, sample) \
+  RTC_LOGGED_HISTOGRAM_ENUMERATION(name, sample, 2)
+
 // Histogram for enumerators (evenly spaced buckets).
 // |boundary| should be above the max enumerator sample.
 #define RTC_HISTOGRAM_ENUMERATION(name, sample, boundary) \