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

Unified Diff: chrome/browser/extensions/installed_loader.cc

Issue 12033021: Add UMA metrics and histograms for locally managed users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/browser/history/history_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/installed_loader.cc
===================================================================
--- chrome/browser/extensions/installed_loader.cc (revision 177135)
+++ chrome/browser/extensions/installed_loader.cc (working copy)
@@ -242,6 +242,7 @@
int legacy_packaged_app_count = 0;
int platform_app_count = 0;
int user_script_count = 0;
+ int content_pack_count = 0;
int extension_user_count = 0;
int extension_external_count = 0;
int theme_count = 0;
@@ -325,6 +326,9 @@
if (extension_action_manager->GetBrowserAction(**ex))
++browser_action_count;
+ if (!(*ex)->is_content_pack())
+ ++content_pack_count;
+
extension_service_->RecordPermissionMessagesHistogram(
*ex, "Extensions.Permissions_Load");
}
@@ -358,6 +362,7 @@
UMA_HISTOGRAM_COUNTS_100("Extensions.LoadPageAction", page_action_count);
UMA_HISTOGRAM_COUNTS_100("Extensions.LoadBrowserAction",
browser_action_count);
+ UMA_HISTOGRAM_COUNTS_100("Extensions.LoadContentPack", content_pack_count);
UMA_HISTOGRAM_COUNTS_100("Extensions.DisabledForPermissions",
disabled_for_permissions_count);
}
« no previous file with comments | « no previous file | chrome/browser/history/history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698