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

Unified Diff: webkit/fileapi/sandbox_file_stream_writer.cc

Issue 10808043: Factor out common error-code conversion code for PlatformFileErrorToNetError. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added NET_EXPORT symbol. Created 8 years, 5 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
« no previous file with comments | « webkit/fileapi/file_system_file_stream_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/sandbox_file_stream_writer.cc
diff --git a/webkit/fileapi/sandbox_file_stream_writer.cc b/webkit/fileapi/sandbox_file_stream_writer.cc
index 8f61d2c55d3f37918f9648a8d7c66d712378f013..7d14900054695f0847f8376377b594e3cd77a6b2 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) {
« no previous file with comments | « webkit/fileapi/file_system_file_stream_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698