diff options
author | ericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 20:06:16 +0000 |
---|---|---|
committer | ericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 20:06:16 +0000 |
commit | 7954ab9ea626f4c3d34d7b92c6108030de8adcb9 (patch) | |
tree | 4e833aa2fb484c0d9de6dbdebd51cfc07167a768 /webkit/glue/webkit_glue.cc | |
parent | 689a7a717a5882405f935e7c18fdc47fcae9fadf (diff) | |
download | chromium_src-7954ab9ea626f4c3d34d7b92c6108030de8adcb9.zip chromium_src-7954ab9ea626f4c3d34d7b92c6108030de8adcb9.tar.gz chromium_src-7954ab9ea626f4c3d34d7b92c6108030de8adcb9.tar.bz2 |
Resubmitting http://codereview.chromium.org/3397030 with the needed one-line deletion.
Tested, reproed the breakage, verified the fix.
BUG=none
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.cc')
-rw-r--r-- | webkit/glue/webkit_glue.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc index 33eff1a..661b87b 100644 --- a/webkit/glue/webkit_glue.cc +++ b/webkit/glue/webkit_glue.cc @@ -313,6 +313,26 @@ WebString FilePathToWebString(const FilePath& file_path) { return FilePathStringToWebString(file_path.value()); } +WebKit::WebFileError PlatformFileErrorToWebFileError( + base::PlatformFileError error_code) { + switch (error_code) { + case base::PLATFORM_FILE_ERROR_NOT_FOUND: + return WebKit::WebFileErrorNotFound; + case base::PLATFORM_FILE_ERROR_INVALID_OPERATION: + case base::PLATFORM_FILE_ERROR_EXISTS: + case base::PLATFORM_FILE_ERROR_NOT_A_DIRECTORY: + return WebKit::WebFileErrorInvalidModification; + case base::PLATFORM_FILE_ERROR_ACCESS_DENIED: + return WebKit::WebFileErrorNoModificationAllowed; + case base::PLATFORM_FILE_ERROR_FAILED: + return WebKit::WebFileErrorInvalidState; + case base::PLATFORM_FILE_ERROR_ABORT: + return WebKit::WebFileErrorAbort; + default: + return WebKit::WebFileErrorInvalidModification; + } +} + namespace { struct UserAgentState { |