Chromium Code Reviews| Index: webkit/plugins/ppapi/ppb_url_loader_impl.cc |
| =================================================================== |
| --- webkit/plugins/ppapi/ppb_url_loader_impl.cc (revision 88604) |
| +++ webkit/plugins/ppapi/ppb_url_loader_impl.cc (working copy) |
| @@ -475,8 +475,10 @@ |
| void PPB_URLLoader_Impl::didFail(WebURLLoader* loader, |
| const WebURLError& error) { |
| - // TODO(darin): Provide more detailed error information. |
| - done_status_ = PP_ERROR_FAILED; |
| + // If a URL load fails, return PP_ERROR_NOACCESS instead of the more generic |
| + // PP_ERROR_FAILED. There is no simple concept of error codes in the |
| + // underlying WebKit loader framework. |
| + done_status_ = PP_ERROR_NOACCESS; |
|
darin (slow to review)
2011/06/11 05:13:12
Well, the error codes actually are defined by Chro
|
| RunCallback(done_status_); |
| } |