summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-31 20:11:01 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-31 20:11:01 +0000
commitd5dc0edd377353fcb5bb951bf18452a34711e040 (patch)
treea41dea1127d1e1ca4bed594d3c8fae3f3fcec4b1
parentee6bb87628d21ae23a443516e7d10482ce65f30d (diff)
downloadchromium_src-d5dc0edd377353fcb5bb951bf18452a34711e040.zip
chromium_src-d5dc0edd377353fcb5bb951bf18452a34711e040.tar.gz
chromium_src-d5dc0edd377353fcb5bb951bf18452a34711e040.tar.bz2
Record new tab button presses.
Review URL: http://codereview.chromium.org/56049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12896 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/views/tabs/tab_strip.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc
index 10021f3..01be61a 100644
--- a/chrome/browser/views/tabs/tab_strip.cc
+++ b/chrome/browser/views/tabs/tab_strip.cc
@@ -1008,8 +1008,10 @@ bool TabStrip::HasAvailableDragActions() const {
// TabStrip, views::BaseButton::ButtonListener implementation:
void TabStrip::ButtonPressed(views::Button* sender) {
- if (sender == newtab_button_)
+ if (sender == newtab_button_) {
+ UserMetrics::RecordAction(L"NewTab_Button", model_->profile());
model_->AddBlankTab(true);
+ }
}
///////////////////////////////////////////////////////////////////////////////