diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 00:46:46 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 00:46:46 +0000 |
commit | e09f1e645f7f70759659644520f04e3386ced52a (patch) | |
tree | ef558adebcd8e741829c7b8e5fd83b91a7968873 /chrome/browser | |
parent | 1299c6efbd11b23ccd46da821f2f1a39b753e0bf (diff) | |
download | chromium_src-e09f1e645f7f70759659644520f04e3386ced52a.zip chromium_src-e09f1e645f7f70759659644520f04e3386ced52a.tar.gz chromium_src-e09f1e645f7f70759659644520f04e3386ced52a.tar.bz2 |
Add in UMA logging for context menu playback controls.
BUG=15686
TEST=none
Review URL: http://codereview.chromium.org/159371
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc index 1c4959f..fae6fa3 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -14,6 +14,7 @@ #include "chrome/browser/debugger/devtools_manager.h" #include "chrome/browser/download/download_manager.h" #include "chrome/browser/fonts_languages_window.h" +#include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/page_info_window.h" #include "chrome/browser/profile.h" #include "chrome/browser/search_engines/template_url_model.h" @@ -540,30 +541,35 @@ void RenderViewContextMenu::ExecuteItemCommand(int id) { break; case IDS_CONTENT_CONTEXT_PLAY: + UserMetrics::RecordAction(L"MediaContextMenu_Play", profile_); MediaPlayerActionAt(params_.x, params_.y, MediaPlayerAction(MediaPlayerAction::PLAY)); break; case IDS_CONTENT_CONTEXT_PAUSE: + UserMetrics::RecordAction(L"MediaContextMenu_Pause", profile_); MediaPlayerActionAt(params_.x, params_.y, MediaPlayerAction(MediaPlayerAction::PAUSE)); break; case IDS_CONTENT_CONTEXT_MUTE: + UserMetrics::RecordAction(L"MediaContextMenu_Mute", profile_); MediaPlayerActionAt(params_.x, params_.y, MediaPlayerAction(MediaPlayerAction::MUTE)); break; case IDS_CONTENT_CONTEXT_UNMUTE: + UserMetrics::RecordAction(L"MediaContextMenu_Unmute", profile_); MediaPlayerActionAt(params_.x, params_.y, MediaPlayerAction(MediaPlayerAction::UNMUTE)); break; case IDS_CONTENT_CONTEXT_LOOP: + UserMetrics::RecordAction(L"MediaContextMenu_Loop", profile_); if (ItemIsChecked(IDS_CONTENT_CONTEXT_LOOP)) { MediaPlayerActionAt(params_.x, params_.y, @@ -576,6 +582,7 @@ void RenderViewContextMenu::ExecuteItemCommand(int id) { break; case IDS_CONTENT_CONTEXT_PLAYBACKRATE_SLOW: + UserMetrics::RecordAction(L"MediaContextMenu_RateSlow", profile_); MediaPlayerActionAt( params_.x, params_.y, @@ -584,6 +591,7 @@ void RenderViewContextMenu::ExecuteItemCommand(int id) { break; case IDS_CONTENT_CONTEXT_PLAYBACKRATE_NORMAL: + UserMetrics::RecordAction(L"MediaContextMenu_RateNormal", profile_); MediaPlayerActionAt( params_.x, params_.y, @@ -592,6 +600,7 @@ void RenderViewContextMenu::ExecuteItemCommand(int id) { break; case IDS_CONTENT_CONTEXT_PLAYBACKRATE_FAST: + UserMetrics::RecordAction(L"MediaContextMenu_RateFast", profile_); MediaPlayerActionAt( params_.x, params_.y, @@ -600,6 +609,7 @@ void RenderViewContextMenu::ExecuteItemCommand(int id) { break; case IDS_CONTENT_CONTEXT_PLAYBACKRATE_FASTER: + UserMetrics::RecordAction(L"MediaContextMenu_RateFaster", profile_); MediaPlayerActionAt( params_.x, params_.y, @@ -608,6 +618,7 @@ void RenderViewContextMenu::ExecuteItemCommand(int id) { break; case IDS_CONTENT_CONTEXT_PLAYBACKRATE_DOUBLETIME: + UserMetrics::RecordAction(L"MediaContextMenu_RateDoubleTime", profile_); MediaPlayerActionAt( params_.x, params_.y, |