Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp |
index 642cb5ceaf41d1a80a2c62552ff021c9ce4bcaf7..d2048573d3476046ffa8d53a5647f56beaf917a5 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp |
@@ -297,8 +297,7 @@ private: |
if (!m_resourceBuffer) { |
// We don't have a buffer yet. Try to get it from the resource. |
- SharedBuffer* buffer = streamer->resource()->resourceBuffer(); |
- m_resourceBuffer = RefPtr<SharedBuffer>(buffer); |
+ m_resourceBuffer = streamer->resource()->resourceBuffer(); |
} |
fetchDataFromResourceBuffer(lengthOfBOM); |