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

Unified Diff: webkit/fileapi/file_system_origin_database.cc

Issue 13946004: FileAPI: Run database recovery on IOError. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +test Created 7 years, 8 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
Index: webkit/fileapi/file_system_origin_database.cc
diff --git a/webkit/fileapi/file_system_origin_database.cc b/webkit/fileapi/file_system_origin_database.cc
index a7405d957951df9092811415be71595c13698cde..b08b31715fb177fbe8e110f3909be1481ac8f90f 100644
--- a/webkit/fileapi/file_system_origin_database.cc
+++ b/webkit/fileapi/file_system_origin_database.cc
@@ -84,7 +84,7 @@ bool FileSystemOriginDatabase::Init(RecoveryOption recovery_option) {
}
HandleError(FROM_HERE, status);
- if (!status.IsCorruption())
+ if (!status.IsCorruption() && !status.IsIOError())
return false;
switch (recovery_option) {

Powered by Google App Engine
This is Rietveld 408576698