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

Unified Diff: third_party/WebKit/Source/web/WebDataSourceImpl.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/WebDataSourceImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebDataSourceImpl.cpp b/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
index 0ca6de65193b6f507aa54a0c16100f6e111d6c40..fb9a3b34be5709667bf3db4413fa784ff05fe0b2 100644
--- a/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
@@ -45,6 +45,8 @@ WebDataSourceImpl* WebDataSourceImpl::create(
const ResourceRequest& request,
const SubstituteData& data,
ClientRedirectPolicy clientRedirectPolicy) {
+ DCHECK(frame);
+
return new WebDataSourceImpl(frame, request, data, clientRedirectPolicy);
}

Powered by Google App Engine
This is Rietveld 408576698