summaryrefslogtreecommitdiffstats
path: root/base/platform_file_posix.cc
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 22:24:42 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 22:24:42 +0000
commit9ce15e92e0606092ed75f40928d02566e1088e0e (patch)
tree8424a361f28480575e75a76e267e208b3fdcfe69 /base/platform_file_posix.cc
parent6cf4908b6a13150baf8b462122be69c3d8eb20fc (diff)
downloadchromium_src-9ce15e92e0606092ed75f40928d02566e1088e0e.zip
chromium_src-9ce15e92e0606092ed75f40928d02566e1088e0e.tar.gz
chromium_src-9ce15e92e0606092ed75f40928d02566e1088e0e.tar.bz2
Add LevelDB and Snappy to the build. These will be used by IndexedDB.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6685102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79058 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file_posix.cc')
-rw-r--r--base/platform_file_posix.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc
index f84c163..2a8d2ca 100644
--- a/base/platform_file_posix.cc
+++ b/base/platform_file_posix.cc
@@ -45,8 +45,7 @@ PlatformFile CreatePlatformFile(const FilePath& name, int flags,
!(flags & PLATFORM_FILE_OPEN_ALWAYS)) {
NOTREACHED();
errno = EOPNOTSUPP;
- if (error_code)
- *error_code = PLATFORM_FILE_ERROR_FAILED;
+ *error_code = error_code ? PLATFORM_FILE_ERROR_FAILED : PLATFORM_FILE_OK;
return kInvalidPlatformFileValue;
}