diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-06 15:47:38 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-06 15:47:38 +0000 |
commit | bd1696d82cc76597b926df22568ac69555069ffc (patch) | |
tree | c152dabbcc10a3cc61f11a6d70edce8f300b6381 /chrome/browser/host_content_settings_map.cc | |
parent | 3bf7ebd20495e943147815b28289414116ef3c35 (diff) | |
download | chromium_src-bd1696d82cc76597b926df22568ac69555069ffc.zip chromium_src-bd1696d82cc76597b926df22568ac69555069ffc.tar.gz chromium_src-bd1696d82cc76597b926df22568ac69555069ffc.tar.bz2 |
Add user metrics for nonsandboxed plugin infobar.
BUG=52341
TEST=none
Review URL: http://codereview.chromium.org/3303003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/host_content_settings_map.cc')
-rw-r--r-- | chrome/browser/host_content_settings_map.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/host_content_settings_map.cc b/chrome/browser/host_content_settings_map.cc index 8cb31f6..9c01798 100644 --- a/chrome/browser/host_content_settings_map.cc +++ b/chrome/browser/host_content_settings_map.cc @@ -8,6 +8,7 @@ #include "base/string_util.h" #include "base/utf_string_conversions.h" #include "chrome/browser/chrome_thread.h" +#include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/profile.h" #include "chrome/browser/prefs/scoped_pref_update.h" @@ -701,11 +702,17 @@ void HostContentSettingsMap::SetBlockNonsandboxedPlugins(bool block) { block_nonsandboxed_plugins_ = block; } + PrefService* prefs = profile_->GetPrefs(); - if (block) + if (block) { + UserMetrics::RecordAction( + UserMetricsAction("BlockNonsandboxedPlugins_Enable")); prefs->SetBoolean(prefs::kBlockNonsandboxedPlugins, true); - else + } else { + UserMetrics::RecordAction( + UserMetricsAction("BlockNonsandboxedPlugins_Disable")); prefs->ClearPref(prefs::kBlockNonsandboxedPlugins); + } } void HostContentSettingsMap::ResetToDefaults() { |