Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp |
index ac1d6d2a141d49a88c0b6838dbf70f6d75481704..ea1ab6d5cc289e3c66be10e36b2784d5f2420289 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp |
@@ -145,7 +145,7 @@ static int getGroupId(v8::Local<v8::Context> context) |
size_t commaPos = dataString.find(","); |
if (commaPos == kNotFound) |
return 0; |
- return dataString.left(commaPos).toInt(); |
+ return dataString.substring(0, commaPos).toInt(); |
} |
void V8DebuggerImpl::addDebuggerAgent(int contextGroupId, V8DebuggerAgentImpl* agent) |