summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/chrome_frame_automation.cc')
-rw-r--r--chrome_frame/chrome_frame_automation.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index 7e5aa6c..b670548 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -1220,6 +1220,11 @@ void ChromeFrameAutomationClient::OnMessageReceivedUIThread(
void ChromeFrameAutomationClient::OnChannelErrorUIThread() {
DCHECK_EQ(PlatformThread::CurrentId(), ui_thread_id_);
+
+ // Report a metric that something went wrong unexpectedly.
+ CrashMetricsReporter::GetInstance()->IncrementMetric(
+ CrashMetricsReporter::CHANNEL_ERROR_COUNT);
+
// Forward to the delegate.
if (chrome_frame_delegate_)
chrome_frame_delegate_->OnChannelError();