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

Unified Diff: webkit/chromeos/fileapi/remote_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/blob/local_file_stream_reader.cc ('k') | webkit/fileapi/file_system_file_stream_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chromeos/fileapi/remote_file_stream_writer.cc
diff --git a/webkit/chromeos/fileapi/remote_file_stream_writer.cc b/webkit/chromeos/fileapi/remote_file_stream_writer.cc
index 0c9b96d5cdf03a812ea94dbb495b76f375f41282..d335e04538287163a6624a20ac6562aea696ca76 100644
--- a/webkit/chromeos/fileapi/remote_file_stream_writer.cc
+++ b/webkit/chromeos/fileapi/remote_file_stream_writer.cc
@@ -10,15 +10,6 @@
#include "webkit/chromeos/fileapi/remote_file_system_proxy.h"
#include "webkit/fileapi/local_file_stream_writer.h"
-namespace {
-
-int PlatformFileErrorToNetError(base::PlatformFileError error) {
- // TODO(kinuko): Move this static method to more convenient place.
- return webkit_blob::LocalFileStreamReader::PlatformFileErrorToNetError(error);
-}
-
-} // namespace
-
namespace fileapi {
RemoteFileStreamWriter::RemoteFileStreamWriter(
@@ -73,7 +64,7 @@ void RemoteFileStreamWriter::OnFileOpened(
}
if (open_result != base::PLATFORM_FILE_OK) {
- callback.Run(PlatformFileErrorToNetError(open_result));
+ callback.Run(net::PlatformFileErrorToNetError(open_result));
return;
}
« no previous file with comments | « webkit/blob/local_file_stream_reader.cc ('k') | webkit/fileapi/file_system_file_stream_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698