summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.cc
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-08 20:52:28 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-08 20:52:28 +0000
commitb835c68f6c1e4e0152ac7a061093aa4dcb62ab25 (patch)
tree59e89f2380886948f3eb60b5fdf96fee552239de /chrome_frame/chrome_frame_automation.cc
parent61e12a2cfb1e6b42131a3084954a0b9c464ed397 (diff)
downloadchromium_src-b835c68f6c1e4e0152ac7a061093aa4dcb62ab25.zip
chromium_src-b835c68f6c1e4e0152ac7a061093aa4dcb62ab25.tar.gz
chromium_src-b835c68f6c1e4e0152ac7a061093aa4dcb62ab25.tar.bz2
Add a Chrome Frame metric to track channel errors that result in sad tabs.
BUG=65899 TEST=None Review URL: http://codereview.chromium.org/5665003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68631 0039d316-1c4b-4281-b951-d872f2087c98
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();