Chromium Code Reviews| Index: third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
| diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
| index 75dd0bfd3fa5562885c0503b3926b03b90a1870a..bdb1b876b504542381a366bfc165ac7468138cd6 100644 |
| --- a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
| +++ b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
| @@ -132,11 +132,14 @@ void ResourceLoader::didFinishLoadingOnePart(double finishTime, int64_t encodedD |
| if (!isFinishing()) { |
|
yhirano
2016/03/16 02:17:33
[optional] It might be good to reorder clauses: I'
hiroshige
2016/03/16 21:18:43
Done.
|
| // When loading a multipart resource, make the loader non-block when |
| // finishing loading the first part. |
| - m_fetcher->subresourceLoaderFinishedLoadingOnePart(this); |
| - } |
| + m_fetcher->moveResourceLoaderToNonBlocking(this); |
| - if (m_state == ConnectionStateReleased) |
| - return; |
| + m_fetcher->didLoadResource(m_resource.get()); |
| + if (m_state == ConnectionStateReleased) |
| + return; |
| + } else { |
| + m_fetcher->removeResourceLoader(this); |
| + } |
| if (m_notifiedLoadComplete) |
| return; |