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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2653673006: Move loadType() to DocumentLoader (Closed)
Patch Set: Move loadType() to DocumentLoader Created 3 years, 11 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: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 11297851b7d8d8a7982fc0c6e96f7985850396e1..9b513312cf53e57e1fa2298d02beccedf9ff5104 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -7154,7 +7154,8 @@ class TestSameDocumentWebFrameClient
: m_frameLoadTypeReloadMainResourceSeen(false) {}
virtual void willSendRequest(WebLocalFrame* frame, WebURLRequest&) {
- if (toWebLocalFrameImpl(frame)->frame()->loader().loadType() ==
+ FrameLoader& frameLoader = toWebLocalFrameImpl(frame)->frame()->loader();
+ if (frameLoader.provisionalDocumentLoader()->loadType() ==
FrameLoadTypeReloadMainResource)
m_frameLoadTypeReloadMainResourceSeen = true;
}

Powered by Google App Engine
This is Rietveld 408576698