Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
index 0db869390761695e3ac12af1954b461eacecd5ac..5cde894159a365b1088028f7327004270baa6510 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
@@ -113,10 +113,7 @@ static String16 calculateHash(const String16& str) |
size_t current = 0; |
const uint32_t* data = nullptr; |
- if (str.is8Bit()) |
- data = reinterpret_cast<const uint32_t*>(str.characters8()); |
- else |
- data = reinterpret_cast<const uint32_t*>(str.characters16()); |
+ data = reinterpret_cast<const uint32_t*>(str.characters16()); |
for (size_t i = 0; i < str.sizeInBytes() / 4; i += 4) { |
uint32_t v = data[i]; |
uint64_t xi = v * randomOdd[current] & 0x7FFFFFFF; |