Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp

Issue 1779033003: DevTools: always use 16bit strings for inspector protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 c5601c94bc914f099d7fd1d8f318afc5880c9f50..ee2834183de505ebe48585d419032fa95c2a6d7e 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp
@@ -144,7 +144,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::addAgent(int contextGroupId, V8DebuggerAgentImpl* agent)

Powered by Google App Engine
This is Rietveld 408576698