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

Unified Diff: extensions/renderer/script_injection.cc

Issue 500823002: DevTools: set extension name as human-readable name of isolated world (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_injection.cc
diff --git a/extensions/renderer/script_injection.cc b/extensions/renderer/script_injection.cc
index 426c556f1cd2413a93b6122f72ca974272c9ce21..2a68720c9e43da2ba1d25ce59e6ef7c5a489c804 100644
--- a/extensions/renderer/script_injection.cc
+++ b/extensions/renderer/script_injection.cc
@@ -84,6 +84,9 @@ int GetIsolatedWorldIdForExtension(const Extension* extension,
frame->setIsolatedWorldContentSecurityPolicy(
id,
blink::WebString::fromUTF8(CSPInfo::GetContentSecurityPolicy(extension)));
+ frame->setIsolatedWorldHumanReadableName(
yurys 2014/08/25 09:25:52 Should it be added to translate_helper.cc as well?
lushnikov 2014/08/30 18:19:00 The translate extension already has readable origi
+ id,
+ blink::WebString::fromUTF8(extension->name()));
return id;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698