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

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 2556053002: Clarify when DocumentLoader's FrameLoader/FrameLoaderClient accessors can be used (Closed)
Patch Set: Rebase and comment fix Created 4 years 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/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index 1791624cfa73dd07961aedeb6c96e9dd771cc6c1..3a952109890fd5840a8a9cee3adaf00e8e186dd6 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -687,6 +687,8 @@ DocumentLoader* FrameLoaderClientImpl::createDocumentLoader(
const ResourceRequest& request,
const SubstituteData& data,
ClientRedirectPolicy clientRedirectPolicy) {
+ DCHECK(frame);
+
WebDataSourceImpl* ds =
WebDataSourceImpl::create(frame, request, data, clientRedirectPolicy);
if (m_webFrame->client())

Powered by Google App Engine
This is Rietveld 408576698