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

Unified Diff: chrome/browser/managed_mode/managed_mode_url_filter.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
Index: chrome/browser/managed_mode/managed_mode_url_filter.cc
===================================================================
--- chrome/browser/managed_mode/managed_mode_url_filter.cc (revision 177135)
+++ chrome/browser/managed_mode/managed_mode_url_filter.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/file_path.h"
#include "base/hash_tables.h"
#include "base/json/json_file_value_serializer.h"
+#include "base/metrics/histogram.h"
#include "base/sha1.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
@@ -306,6 +307,11 @@
(*it)->GetAsString(&item);
DVLOG(1) << item;
}
+
+ UMA_HISTOGRAM_CUSTOM_COUNTS("ManagedMode.ManualWhitelistEntries",
+ url_manual_list_allow_->Size(), 1, 100, 50);
+ UMA_HISTOGRAM_CUSTOM_COUNTS("ManagedMode.ManualBlacklistEntries",
+ url_manual_list_block_->Size(), 1, 100, 50);
}
void ManagedModeURLFilter::AddURLPatternToManualList(
« no previous file with comments | « chrome/browser/managed_mode/managed_mode_url_filter.h ('k') | chrome/browser/policy/url_blacklist_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698