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 ae803d9928ce6c1bc0ff15a15673421afa55a48d..d0ea85b3ddcd5aa8d4675d683c0810b64f1be4c9 100644 |
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc |
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc |
@@ -313,7 +313,8 @@ void HandleReadError(PersistentPrefStore::PrefReadError error) { |
// an example problem that this can cause. |
// Do some diagnosis and try to avoid losing data. |
int message_id = 0; |
- if (error <= PersistentPrefStore::PREF_READ_ERROR_JSON_TYPE) { |
+ if (error <= PersistentPrefStore::PREF_READ_ERROR_JSON_TYPE || |
+ error == PersistentPrefStore::PREF_READ_ERROR_LEVELDB_CORRUPTION) { |
message_id = IDS_PREFERENCES_CORRUPT_ERROR; |
} else if (error != PersistentPrefStore::PREF_READ_ERROR_NO_FILE) { |
message_id = IDS_PREFERENCES_UNREADABLE_ERROR; |