Commit ccb5f5a3 authored by Jeremy Roman's avatar Jeremy Roman Committed by Commit Bot

Inspector: Skip a copy/widening of the injected script source.

This reduces the number of times this string is copied from two to one.

Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I8680cfc1ef1d6c2cfd3bc4970fe698bb904ce328
Reviewed-on: https://chromium-review.googlesource.com/652591Reviewed-by: 's avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47861}
parent e8fbf582
......@@ -272,8 +272,8 @@ std::unique_ptr<InjectedScript> InjectedScript::create(
// The function is expected
// to create and configure InjectedScript instance that is going to be used by
// the inspector.
String16 injectedScriptSource(
reinterpret_cast<const char*>(InjectedScriptSource_js),
StringView injectedScriptSource(
reinterpret_cast<const uint8_t*>(InjectedScriptSource_js),
sizeof(InjectedScriptSource_js));
v8::Local<v8::Value> value;
if (!inspectedContext->inspector()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment