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

Unified Diff: content/shell/shell_devtools_frontend.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 | « content/shell/shell_content_renderer_client.cc ('k') | content/shell/shell_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_devtools_frontend.cc
===================================================================
--- content/shell/shell_devtools_frontend.cc (revision 192622)
+++ content/shell/shell_devtools_frontend.cc (working copy)
@@ -56,11 +56,8 @@
DevToolsAgentHost::GetOrCreateFor(
inspected_contents->GetRenderViewHost()));
- ShellContentBrowserClient* browser_client =
- static_cast<ShellContentBrowserClient*>(
- GetContentClient()->browser());
- ShellDevToolsDelegate* delegate =
- browser_client->shell_browser_main_parts()->devtools_delegate();
+ ShellDevToolsDelegate* delegate = ShellContentBrowserClient::Get()->
+ shell_browser_main_parts()->devtools_delegate();
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
shell->LoadURL(GetDevToolsPathAsURL());
else
« no previous file with comments | « content/shell/shell_content_renderer_client.cc ('k') | content/shell/shell_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698