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

Unified Diff: Source/core/fetch/RawResource.cpp

Issue 1124153003: [Oilpan] [Reland] Migrate classes under core/fetch to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Check m_fetcher in DocumentLoader Created 5 years, 6 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: Source/core/fetch/RawResource.cpp
diff --git a/Source/core/fetch/RawResource.cpp b/Source/core/fetch/RawResource.cpp
index 918723de7eac9868dcab67e6a32998d626fb8848..e33f5a445d8bd2be455ffa5ff9f839e92ad23573 100644
--- a/Source/core/fetch/RawResource.cpp
+++ b/Source/core/fetch/RawResource.cpp
@@ -58,6 +58,9 @@ void RawResource::preCacheSubstituteDataForMainResource(const FetchRequest& requ
ResourcePtr<Resource> RawResource::fetchSynchronously(FetchRequest& request, ResourceFetcher* fetcher)
{
+ if (!fetcher)
sof 2015/06/29 13:29:29 Why is this needed here now?
peria 2015/06/30 07:14:39 it seems not needed here. removed.
+ return nullptr;
+
request.mutableResourceRequest().setTimeoutInterval(10);
ResourceLoaderOptions options(request.options());
options.synchronousPolicy = RequestSynchronously;

Powered by Google App Engine
This is Rietveld 408576698