summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/crx_installer.cc
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-28 04:36:09 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-28 04:36:09 +0000
commitac875371b19514403ddf6eaf10fb80e7d94ea6a2 (patch)
tree2d8094e4e07773742feb8847a89cf5498f20fc5b /chrome/browser/extensions/crx_installer.cc
parent1709d6612cd714a7237a687cad3f4b7bc305c965 (diff)
downloadchromium_src-ac875371b19514403ddf6eaf10fb80e7d94ea6a2.zip
chromium_src-ac875371b19514403ddf6eaf10fb80e7d94ea6a2.tar.gz
chromium_src-ac875371b19514403ddf6eaf10fb80e7d94ea6a2.tar.bz2
Add UMA for extension blacklisting.
R=mpcomplete@chromium.org BUG=178122 Review URL: https://chromiumcodereview.appspot.com/12386003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/crx_installer.cc')
-rw-r--r--chrome/browser/extensions/crx_installer.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index 489b344..6179662 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -42,6 +42,7 @@
#include "chrome/common/extensions/extension_file_util.h"
#include "chrome/common/extensions/extension_icon_set.h"
#include "chrome/common/extensions/feature_switch.h"
+#include "chrome/common/extensions/manifest.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/resource_dispatcher_host.h"
@@ -658,6 +659,8 @@ void CrxInstaller::HandleIsBlacklistedResponse(
extensions::CrxInstallerError(error));
// Show error via reporter to make tests happy.
ExtensionErrorReporter::GetInstance()->ReportError(error, false); // quiet
+ UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.BlockCRX",
+ extension_->location(), Manifest::NUM_LOCATIONS);
} else {
on_success.Run();
}