Chromium Code Reviews| Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp |
| diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp |
| index 8625e38192b69d9e95a3b2bc2312721cc125fd82..cb5d0197f91520ef8b88fb5b2797e74fefcdbd67 100644 |
| --- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp |
| +++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp |
| @@ -350,7 +350,10 @@ PassRefPtrWillBeRawPtr<Resource> ResourceFetcher::resourceForStaticData(const Fe |
| resource->setIdentifier(createUniqueIdentifier()); |
| resource->setCacheIdentifier(cacheIdentifier); |
| resource->finish(); |
| - memoryCache()->add(resource.get()); |
| + |
| + if (!substituteData.isValid()) |
| + memoryCache()->add(resource.get()); |
|
Nate Chapin
2016/03/01 17:51:42
There is a special case related to substitue data
hiroshige
2016/03/02 01:06:39
Done.
|
| + |
| return resource.release(); |
| } |