diff options
author | nhiroki@google.com <nhiroki@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 00:10:51 +0000 |
---|---|---|
committer | nhiroki@google.com <nhiroki@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 00:10:51 +0000 |
commit | ed2e766d1bf0f34f1dbc2ebfeccc96e57e0fdd1e (patch) | |
tree | 54a379febcb62decb7b8e50cfb422254deab2828 /webkit/fileapi/sandbox_file_stream_writer.cc | |
parent | a47c55de0f7160d1b3f5457dffd41ca96f8fa2f2 (diff) | |
download | chromium_src-ed2e766d1bf0f34f1dbc2ebfeccc96e57e0fdd1e.zip chromium_src-ed2e766d1bf0f34f1dbc2ebfeccc96e57e0fdd1e.tar.gz chromium_src-ed2e766d1bf0f34f1dbc2ebfeccc96e57e0fdd1e.tar.bz2 |
Factor out common error-code conversion code for PlatformFileErrorToNetError.
BUG=136494
Review URL: https://chromiumcodereview.appspot.com/10808043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148255 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/sandbox_file_stream_writer.cc')
-rw-r--r-- | webkit/fileapi/sandbox_file_stream_writer.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/webkit/fileapi/sandbox_file_stream_writer.cc b/webkit/fileapi/sandbox_file_stream_writer.cc index 8f61d2c..7d14900 100644 --- a/webkit/fileapi/sandbox_file_stream_writer.cc +++ b/webkit/fileapi/sandbox_file_stream_writer.cc @@ -21,11 +21,6 @@ namespace fileapi { namespace { -int PlatformFileErrorToNetError(base::PlatformFileError error) { - // TODO(kinuko): Move this static method to more convenient place. - return webkit_blob::LocalFileStreamReader::PlatformFileErrorToNetError(error); -} - // Adjust the |quota| value in overwriting case (i.e. |file_size| > 0 and // |file_offset| < |file_size|) to make the remaining quota calculation easier. // Specifically this widens the quota for overlapping range (so that we can @@ -127,7 +122,7 @@ void SandboxFileStreamWriter::DidGetFileInfo( if (CancelIfRequested()) return; if (file_error != base::PLATFORM_FILE_OK) { - callback.Run(PlatformFileErrorToNetError(file_error)); + callback.Run(net::PlatformFileErrorToNetError(file_error)); return; } if (file_info.is_directory) { |