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

Unified Diff: chrome/browser/ui/views/extensions/extension_popup.cc

Issue 442303002: DevTools: migrate DevTools APIs to use WebContents instead of RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments addressed. 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
Index: chrome/browser/ui/views/extensions/extension_popup.cc
diff --git a/chrome/browser/ui/views/extensions/extension_popup.cc b/chrome/browser/ui/views/extensions/extension_popup.cc
index 06a8bc02159f410f46bd9fb0c2efd01aeb147a9c..e77df9e76d24896752efd2b90ed8e11308d70129 100644
--- a/chrome/browser/ui/views/extensions/extension_popup.cc
+++ b/chrome/browser/ui/views/extensions/extension_popup.cc
@@ -107,7 +107,7 @@ void ExtensionPopup::OnDevToolsStateChanged(
content::DevToolsAgentHost* agent_host,
bool attached) {
// First check that the devtools are being opened on this popup.
- if (host()->render_view_host() != agent_host->GetRenderViewHost())
+ if (host()->host_contents() != agent_host->GetWebContents())
return;
if (attached) {
@@ -225,7 +225,7 @@ void ExtensionPopup::ShowBubble() {
host()->host_contents()->Focus();
if (inspect_with_devtools_) {
- DevToolsWindow::OpenDevToolsWindow(host()->render_view_host(),
- DevToolsToggleAction::ShowConsole());
+ DevToolsWindow::OpenDevToolsWindow(host()->host_contents(),
+ DevToolsToggleAction::ShowConsole());
}
}

Powered by Google App Engine
This is Rietveld 408576698