summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-26 02:33:31 +0000
committerdgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-26 02:33:31 +0000
commit42a5abafc61942cbc661a5c04571b40de578379f (patch)
tree0bb3e0084b0e9619fb999b689b6bf5740c69a2bb
parent4f48a472067075a42dabee7a8844cf1c6f970bcd (diff)
downloadchromium_src-42a5abafc61942cbc661a5c04571b40de578379f.zip
chromium_src-42a5abafc61942cbc661a5c04571b40de578379f.tar.gz
chromium_src-42a5abafc61942cbc661a5c04571b40de578379f.tar.bz2
Pass CreateDirectory errors up to IndexedDB.
While https://chromiumcodereview.appspot.com/17151017 logged the error when CreateDir failed, this CL will log it separately when it causes data loss. BUG=239880 Review URL: https://chromiumcodereview.appspot.com/17745006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208598 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--third_party/leveldatabase/env_chromium.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/leveldatabase/env_chromium.cc b/third_party/leveldatabase/env_chromium.cc
index 5c5abe4..4a8027b 100644
--- a/third_party/leveldatabase/env_chromium.cc
+++ b/third_party/leveldatabase/env_chromium.cc
@@ -629,7 +629,7 @@ Status ChromiumEnv::CreateDir(const std::string& name) {
if (::file_util::CreateDirectoryAndGetError(CreateFilePath(name), &error))
return result;
} while (retrier.ShouldKeepTrying(error));
- result = MakeIOError(name, "Could not create directory.", kCreateDir);
+ result = MakeIOError(name, "Could not create directory.", kCreateDir, error);
RecordOSError(kCreateDir, error);
return result;
}