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

Unified Diff: content/browser/frame_host/navigation_request.cc

Issue 958083002: PlzNavigate: Show error pages when the navigation failed before commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@support-data-urls
Patch Set: Fixed replace computation Created 5 years, 8 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
Index: content/browser/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index e5973ee3284556933bebee93e008f511026f5236..c78d4b8a1821686d38a6b723d45800b442688682 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -203,11 +203,11 @@ void NavigationRequest::OnResponseStarted(
response.get(), body.Pass());
}
-void NavigationRequest::OnRequestFailed(int net_error) {
+void NavigationRequest::OnRequestFailed(bool in_cache, int net_error) {
Charlie Reis 2015/04/09 00:07:30 Please use the same name as in Navigator (has_stal
clamy 2015/04/10 14:04:49 Done.
DCHECK(state_ == STARTED);
state_ = FAILED;
- // TODO(davidben): Network failures should display a network error page.
- NOTIMPLEMENTED() << " where net_error=" << net_error;
+ frame_tree_node_->navigator()->FailedNavigation(frame_tree_node_, in_cache,
+ net_error);
}
void NavigationRequest::OnRequestStarted(base::TimeTicks timestamp) {

Powered by Google App Engine
This is Rietveld 408576698