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

Unified Diff: extensions/renderer/script_context.cc

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compile Created 6 years, 5 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 | « extensions/renderer/resources/runtime_custom_bindings.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_context.cc
diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
index 882837de7628cb18801e66b46f20f04a3c618a3d..0f40f9a4834279424048602849e1f393bf57a5c3 100644
--- a/extensions/renderer/script_context.cc
+++ b/extensions/renderer/script_context.cc
@@ -42,6 +42,7 @@ ScriptContext::ScriptContext(const v8::Handle<v8::Context>& v8_context,
VLOG(1) << "Created context:\n"
<< " extension id: " << GetExtensionID() << "\n"
<< " frame: " << web_frame_ << "\n"
+ << " URL: " << GetURL() << "\n"
<< " context type: " << GetContextTypeDescription();
gin::PerContextData::From(v8_context)->set_runner(this);
}
@@ -137,6 +138,8 @@ std::string ScriptContext::GetContextTypeDescription() {
return "WEB_PAGE";
case Feature::BLESSED_WEB_PAGE_CONTEXT:
return "BLESSED_WEB_PAGE";
+ case Feature::WEBUI_CONTEXT:
+ return "WEBUI";
}
NOTREACHED();
return std::string();
« no previous file with comments | « extensions/renderer/resources/runtime_custom_bindings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698