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

Unified Diff: content/browser/debugger/render_view_devtools_agent_host.cc

Issue 9235002: Enable devtools via context menu in platform apps and popup extensions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Keep inspect popup command working Created 8 years, 11 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
Index: content/browser/debugger/render_view_devtools_agent_host.cc
diff --git a/content/browser/debugger/render_view_devtools_agent_host.cc b/content/browser/debugger/render_view_devtools_agent_host.cc
index 7aad562d8a051701bfafd713b1240a810777074a..208fc6f2398c25b5c88f7ab4c9040d6afe8ac8e6 100644
--- a/content/browser/debugger/render_view_devtools_agent_host.cc
+++ b/content/browser/debugger/render_view_devtools_agent_host.cc
@@ -77,6 +77,15 @@ RenderViewDevToolsAgentHost::RenderViewDevToolsAgentHost(RenderViewHost* rvh)
: content::RenderViewHostObserver(rvh),
render_view_host_(rvh) {
g_instances.Get()[rvh] = this;
+
+ // Notify that the view is being opened. This allows any views being debugged
+ // to do anything special they need to do to support debugging.
+ content::NotificationService::current()->Notify(
+ content::NOTIFICATION_DEVTOOLS_WINDOW_OPENING,
+ content::Source<content::BrowserContext>(
+ render_view_host_->site_instance()->GetProcess()->
+ GetBrowserContext()),
+ content::Details<RenderViewHost>(render_view_host_));
}
void RenderViewDevToolsAgentHost::SendMessageToAgent(IPC::Message* msg) {

Powered by Google App Engine
This is Rietveld 408576698