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

Unified Diff: third_party/WebKit/Source/core/loader/EmptyClients.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/core/loader/EmptyClients.cpp
diff --git a/third_party/WebKit/Source/core/loader/EmptyClients.cpp b/third_party/WebKit/Source/core/loader/EmptyClients.cpp
index c4eb99b5525974ea8a9af8e81e34a693b6d6f097..e587b5492821f8889757b820a417f23df9ff95e0 100644
--- a/third_party/WebKit/Source/core/loader/EmptyClients.cpp
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.cpp
@@ -147,6 +147,8 @@ DocumentLoader* EmptyFrameLoaderClient::createDocumentLoader(
const ResourceRequest& request,
const SubstituteData& substituteData,
ClientRedirectPolicy clientRedirectPolicy) {
+ DCHECK(frame);
+
return DocumentLoader::create(frame, request, substituteData,
clientRedirectPolicy);
}

Powered by Google App Engine
This is Rietveld 408576698