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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2417173002: Loading: bulk style errors fix in core/fetch (Closed)
Patch Set: Created 4 years, 2 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: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index 01ce75df29d537f8b830bdb70a6bd5dac4334f64..6339c15de125e22e0b0539b8f6b894db9052f657 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -267,12 +267,13 @@ Resource::ResourceCallback::ResourceCallback()
CancellableTaskFactory::create(this, &ResourceCallback::runTask)) {}
void Resource::ResourceCallback::schedule(Resource* resource) {
- if (!m_callbackTaskFactory->isPending())
+ if (!m_callbackTaskFactory->isPending()) {
Platform::current()
->currentThread()
->scheduler()
->loadingTaskRunner()
->postTask(BLINK_FROM_HERE, m_callbackTaskFactory->cancelAndCreate());
+ }
m_resourcesWithPendingClients.add(resource);
}
@@ -579,9 +580,10 @@ bool Resource::willFollowRedirect(const ResourceRequest& newRequest,
void Resource::setResponse(const ResourceResponse& response) {
m_response = response;
- if (m_response.wasFetchedViaServiceWorker())
+ if (m_response.wasFetchedViaServiceWorker()) {
m_cacheHandler = ServiceWorkerResponseCachedMetadataHandler::create(
this, m_fetcherSecurityOrigin.get());
+ }
}
void Resource::responseReceived(const ResourceResponse& response,

Powered by Google App Engine
This is Rietveld 408576698