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

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

Issue 12620: Append a trailing slash on file directory URLs. Thus a link to /directory wil... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 5946)
+++ webkit/tools/test_shell/test_webview_delegate.cc (working copy)
@@ -223,10 +223,11 @@
bool replace = extra_data && extra_data->pending_page_id != -1;
scoped_ptr<WebRequest> request(failed_request.Clone());
- request->SetURL(GURL("testshell-error:"));
std::string error_text =
- StringPrintf("Error loading url: %d", error.GetErrorCode());
+ StringPrintf("Error %d when loading url %s", error.GetErrorCode(),
+ request->GetURL().spec().c_str());
+ request->SetURL(GURL("testshell-error:"));
frame->LoadAlternateHTMLString(request.get(), error_text,
error.GetFailedURL(), replace);
« net/url_request/url_request_file_dir_job.cc ('K') | « net/url_request/url_request_file_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698