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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2545023002: Clean up around FrameFetchContext (Closed)
Patch Set: Rebase 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 918fe8920fc185a7b77e0888895ed187d1baf7e1..cb2b98af8f92f294eae0ae1732c637c975c8e060 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -506,10 +506,11 @@ Document::Document(const DocumentInit& initializer,
if (registry && m_registrationContext)
registry->entangle(m_registrationContext);
} else if (m_importsController) {
- m_fetcher = FrameFetchContext::createContextAndFetcher(nullptr, this);
+ m_fetcher = FrameFetchContext::createFetcherFromDocument(this);
} else {
m_fetcher = ResourceFetcher::create(nullptr);
}
+ DCHECK(m_fetcher);
m_rootScrollerController = RootScrollerController::create(*this);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698