Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: chrome/renderer/blocked_plugin.cc

Issue 7558024: Add UMA metrics for blocked plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/blocked_plugin.cc
diff --git a/chrome/renderer/blocked_plugin.cc b/chrome/renderer/blocked_plugin.cc
index d4e84e6389fce0b7fd6ff17d9d6fe65183aa2565..c72ca7c3aea782f599a244cbe6c75ad098886d29 100644
--- a/chrome/renderer/blocked_plugin.cc
+++ b/chrome/renderer/blocked_plugin.cc
@@ -165,13 +165,16 @@ void BlockedPlugin::OnMenuItemSelected(
const webkit_glue::CustomContextMenuContext& /* ignored */,
unsigned id) {
if (id == kMenuActionLoad) {
+ Send(new ViewHostMsg_UserMetricsRecordAction("Plugin_Load_Menu"));
LoadPlugin();
} else if (id == kMenuActionRemove) {
+ Send(new ViewHostMsg_UserMetricsRecordAction("Plugin_Hide_Menu"));
HidePlugin();
}
}
void BlockedPlugin::OnLoadBlockedPlugins() {
+ Send(new ViewHostMsg_UserMetricsRecordAction("Plugin_Load_UI"));
LoadPlugin();
}
@@ -209,10 +212,12 @@ void BlockedPlugin::LoadPlugin() {
}
void BlockedPlugin::Load(const CppArgumentList& args, CppVariant* result) {
+ Send(new ViewHostMsg_UserMetricsRecordAction("Plugin_Load_Click"));
LoadPlugin();
}
void BlockedPlugin::Hide(const CppArgumentList& args, CppVariant* result) {
+ Send(new ViewHostMsg_UserMetricsRecordAction("Plugin_Hide_Click"));
HidePlugin();
}
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698