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

Unified Diff: net/base/net_errors.cc

Issue 10920087: Update callers of CreateFileSystemOperation so more detailed error codes can be returned. Where app… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 8 years, 3 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 | « content/browser/fileapi/fileapi_message_filter.cc ('k') | webkit/fileapi/file_system_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_errors.cc
diff --git a/net/base/net_errors.cc b/net/base/net_errors.cc
index 8ac6b89757db279cf0f45a0ff242e20519455e02..78c6e2791d747c0369352fc2830a786f1f89df9a 100644
--- a/net/base/net_errors.cc
+++ b/net/base/net_errors.cc
@@ -49,10 +49,12 @@ Error PlatformFileErrorToNetError(
switch (file_error) {
case base::PLATFORM_FILE_OK:
return net::OK;
- case base::PLATFORM_FILE_ERROR_NOT_FOUND:
- return net::ERR_FILE_NOT_FOUND;
case base::PLATFORM_FILE_ERROR_ACCESS_DENIED:
return net::ERR_ACCESS_DENIED;
+ case base::PLATFORM_FILE_ERROR_INVALID_URL:
+ return net::ERR_INVALID_URL;
+ case base::PLATFORM_FILE_ERROR_NOT_FOUND:
+ return net::ERR_FILE_NOT_FOUND;
default:
return net::ERR_FAILED;
}
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | webkit/fileapi/file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698