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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 5012005: Modify GetErrorDescription to give a -1004 on NETWORK_ACCESS_DENIED (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Index: webkit/tools/test_shell/test_webview_delegate.cc
===================================================================
--- webkit/tools/test_shell/test_webview_delegate.cc (revision 66319)
+++ webkit/tools/test_shell/test_webview_delegate.cc (working copy)
@@ -224,6 +224,7 @@
domain = "NSURLErrorDomain";
switch (error.reason) {
case net::ERR_ABORTED:
+ // NSURLErrorCancelled
code = -999;
break;
case net::ERR_UNSAFE_PORT:
@@ -234,6 +235,8 @@
break;
case net::ERR_ADDRESS_INVALID:
case net::ERR_ADDRESS_UNREACHABLE:
+ case net::ERR_NETWORK_ACCESS_DENIED:
+ // NSURLErrorCannotConnectToHost
code = -1004;
break;
}
« webkit/support/webkit_support.cc ('K') | « webkit/tools/layout_tests/test_expectations.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698