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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1194383003: Add a flag showing whether the current request was ignored by a handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot failures (DidFailProvisionalLoad calls in unit tests) Created 5 years, 6 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 390121b060993439fdd21f708c8010964ed605dd..d6e4d0ce8bb244306579f5e3df022b96cfa10f89 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2611,7 +2611,8 @@ void WebContentsImpl::DidFailProvisionalLoadWithError(
DidFailProvisionalLoad(render_frame_host,
validated_url,
params.error_code,
- params.error_description));
+ params.error_description,
+ params.was_ignored_by_handler));
FrameTreeNode* ftn = render_frame_host->frame_tree_node();
BrowserAccessibilityManager* manager =
@@ -2624,11 +2625,13 @@ void WebContentsImpl::DidFailLoadWithError(
RenderFrameHostImpl* render_frame_host,
const GURL& url,
int error_code,
- const base::string16& error_description) {
+ const base::string16& error_description,
+ bool was_ignored_by_handler) {
FOR_EACH_OBSERVER(
WebContentsObserver,
observers_,
- DidFailLoad(render_frame_host, url, error_code, error_description));
+ DidFailLoad(render_frame_host, url, error_code, error_description,
+ was_ignored_by_handler));
}
void WebContentsImpl::NotifyChangedNavigationState(
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698