Commit 6e2569a5 authored by mnissler@chromium.org's avatar mnissler@chromium.org

Change PrefService.ReadError histogram to sample success case.

The previous data didn't give us any indication of the actual error
rate but just the error distribution.

BUG=None

Review URL: https://chromiumcodereview.appspot.com/23653025

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222023 0039d316-1c4b-4281-b951-d872f2087c98
parent 2c7d76c7
...@@ -39,6 +39,11 @@ namespace { ...@@ -39,6 +39,11 @@ namespace {
// Shows notifications which correspond to PersistentPrefStore's reading errors. // Shows notifications which correspond to PersistentPrefStore's reading errors.
void HandleReadError(PersistentPrefStore::PrefReadError error) { void HandleReadError(PersistentPrefStore::PrefReadError error) {
// Sample the histogram also for the successful case in order to get a
// baseline on the success rate in addition to the error distribution.
UMA_HISTOGRAM_ENUMERATION("PrefService.ReadError", error,
PersistentPrefStore::PREF_READ_ERROR_MAX_ENUM);
if (error != PersistentPrefStore::PREF_READ_ERROR_NONE) { if (error != PersistentPrefStore::PREF_READ_ERROR_NONE) {
#if !defined(OS_CHROMEOS) #if !defined(OS_CHROMEOS)
// Failing to load prefs on startup is a bad thing(TM). See bug 38352 for // Failing to load prefs on startup is a bad thing(TM). See bug 38352 for
...@@ -59,8 +64,6 @@ void HandleReadError(PersistentPrefStore::PrefReadError error) { ...@@ -59,8 +64,6 @@ void HandleReadError(PersistentPrefStore::PrefReadError error) {
// On ChromeOS error screen with message about broken local state // On ChromeOS error screen with message about broken local state
// will be displayed. // will be displayed.
#endif #endif
UMA_HISTOGRAM_ENUMERATION("PrefService.ReadError", error,
PersistentPrefStore::PREF_READ_ERROR_MAX_ENUM);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment