Index: third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp |
index c3085751f74df174c46e15009c96675d950d037b..79c90f0b77359077c2bedb9c0ec18c0e3d9bf6d6 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp |
@@ -134,9 +134,9 @@ void V8InjectedScriptHost::subtypeCallback(const v8::FunctionCallbackInfo<v8::Va |
info.GetReturnValue().Set(toV8StringInternalized(isolate, "promise")); |
return; |
} |
- String16 subtype = unwrapInspector(info)->client()->valueSubtype(value); |
- if (!subtype.isEmpty()) { |
- info.GetReturnValue().Set(toV8String(isolate, subtype)); |
+ std::unique_ptr<StringBuffer> subtype = unwrapInspector(info)->client()->valueSubtype(value); |
+ if (subtype) { |
+ info.GetReturnValue().Set(toV8String(isolate, subtype->string())); |
return; |
} |
} |