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 1ea83e07ee70a17ca369702e8fc6689013292613..62c4c00ddb3c607374ebdcefbf864b6b04e491df 100644 |
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp |
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp |
@@ -277,11 +277,8 @@ bool Resource::loadLocallyDataURL(const ResourceRequest& request, const Resource |
WebData webData; |
if (!Platform::current()->parseDataURLIfCanBeHandledLocally(wrappedRequest, mimetype, charset, webData)) |
return false; |
- RefPtr<SharedBuffer> data = PassRefPtr<SharedBuffer>(webData); |
- if (!data) |
- return false; |
- loadLocallyStaticData(request, options, mimetype, charset, data.release()); |
+ loadLocallyStaticData(request, options, mimetype, charset, PassRefPtr<SharedBuffer>(webData)); |
return true; |
} |