Index: chrome/browser/prefs/chrome_pref_service_factory.cc |
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.cc b/chrome/browser/prefs/chrome_pref_service_factory.cc |
index 81b2c6670c8f92deaf05cf5067846753f6acb13f..bd00998e52c80fb70a8a0c6705a85e3fbeea114d 100644 |
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc |
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc |
@@ -307,9 +307,13 @@ GetTrackingConfiguration() { |
return result; |
} |
- |
// Shows notifications which correspond to PersistentPrefStore's reading errors. |
void HandleReadError(PersistentPrefStore::PrefReadError error) { |
+ if (error != PersistentPrefStore::PREF_READ_ERROR_NONE && |
+ error != PersistentPrefStore::PREF_READ_ERROR_NO_FILE) { |
+ LOG(ERROR) << "An error happened during prefs loading: " << 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, |