Commit b53144f3 authored by lushnikov's avatar lushnikov Committed by Commit bot

DevTools: set extension name as human-readable name of isolated world

The patch sets up human-readable name of isolated worlds, generated by
extension, to the name of the parent extension. This will be very useful
for extension debugging in developer tools.

BUG=160977
R=vsevik, yurys

Review URL: https://codereview.chromium.org/500823002

Cr-Commit-Position: refs/heads/master@{#293095}
parent 5c34ceb4
...@@ -84,6 +84,9 @@ int GetIsolatedWorldIdForExtension(const Extension* extension, ...@@ -84,6 +84,9 @@ int GetIsolatedWorldIdForExtension(const Extension* extension,
frame->setIsolatedWorldContentSecurityPolicy( frame->setIsolatedWorldContentSecurityPolicy(
id, id,
blink::WebString::fromUTF8(CSPInfo::GetContentSecurityPolicy(extension))); blink::WebString::fromUTF8(CSPInfo::GetContentSecurityPolicy(extension)));
frame->setIsolatedWorldHumanReadableName(
id,
blink::WebString::fromUTF8(extension->name()));
return id; return id;
} }
......
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