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

Unified Diff: chrome/browser/content_settings/content_settings_pref_provider.cc

Issue 7008004: Add a histogram for the number of hostname patterns for content settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/content_settings_pref_provider.cc
diff --git a/chrome/browser/content_settings/content_settings_pref_provider.cc b/chrome/browser/content_settings/content_settings_pref_provider.cc
index 0d26a262621813aaa3044506a6763415870d6837..feb5c1cbd1486c2d6ad6018acdd46240b20cda2e 100644
--- a/chrome/browser/content_settings/content_settings_pref_provider.cc
+++ b/chrome/browser/content_settings/content_settings_pref_provider.cc
@@ -9,6 +9,7 @@
#include <vector>
#include "base/command_line.h"
+#include "base/metrics/histogram.h"
#include "chrome/browser/content_settings/content_settings_details.h"
#include "chrome/browser/content_settings/content_settings_pattern.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -372,6 +373,11 @@ void PrefProvider::Init() {
// Read exceptions.
ReadExceptions(false);
+ if (!is_incognito()) {
+ UMA_HISTOGRAM_COUNTS("ContentSettings.NumberOfExceptions",
jar (doing other things) 2011/05/25 02:19:50 One thing to test is to be sure the histogram syst
+ host_content_settings()->size());
+ }
+
pref_change_registrar_.Init(prefs);
pref_change_registrar_.Add(prefs::kContentSettingsPatterns, this);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698