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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1046953003: Add the WebHistoryCommitType to didFailProvisionalLoad, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 6e3219b1147302652007e548b9c9b4bf59bec3bc..a8b13fd5f447584e00d65ee06be89875e188dc4d 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -1842,15 +1842,16 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection()
}
}
-void WebLocalFrameImpl::didFail(const ResourceError& error, bool wasProvisional)
+void WebLocalFrameImpl::didFail(const ResourceError& error, bool wasProvisional, HistoryCommitType commitType)
{
if (!client())
return;
WebURLError webError = error;
+ WebHistoryCommitType webCommitType = static_cast<WebHistoryCommitType>(commitType);
if (wasProvisional)
- client()->didFailProvisionalLoad(this, webError);
+ client()->didFailProvisionalLoad(this, webError, webCommitType);
else
- client()->didFailLoad(this, webError);
+ client()->didFailLoad(this, webError, webCommitType);
}
void WebLocalFrameImpl::setCanHaveScrollbars(bool canHaveScrollbars)
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698