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 1870de90c3a3a2dc17d7b94fd9f2dd4eab1c6336..77e680b2fe63b8fd38025c8a46c4d52dd832530e 100644 |
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc |
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc |
@@ -281,7 +281,9 @@ 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_DESTROYED_REOPENED) { |
message_id = IDS_PREFERENCES_CORRUPT_ERROR; |
} else if (error != PersistentPrefStore::PREF_READ_ERROR_NO_FILE) { |
message_id = IDS_PREFERENCES_UNREADABLE_ERROR; |