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

Unified Diff: content/shell/shell_content_browser_client.cc

Issue 9700023: Move creation of content TabContentsViews to content so that we can hide these headers through DEPS… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 9 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/shell/shell_content_browser_client.cc
===================================================================
--- content/shell/shell_content_browser_client.cc (revision 126521)
+++ content/shell/shell_content_browser_client.cc (working copy)
@@ -38,22 +38,18 @@
return new ShellBrowserMainParts(parameters);
}
-WebContentsView* ShellContentBrowserClient::CreateWebContentsView(
+WebContentsView* ShellContentBrowserClient::OverrideCreateWebContentsView(
WebContents* web_contents) {
ShellDevToolsDelegate* devtools_delegate =
shell_browser_main_parts_->devtools_delegate();
if (devtools_delegate)
devtools_delegate->AddWebContents(web_contents);
+ return NULL;
+}
-#if defined(OS_WIN)
- return new TabContentsViewWin(web_contents, NULL);
-#elif defined(OS_LINUX)
- return new TabContentsViewGtk(web_contents, NULL);
-#elif defined(OS_MACOSX)
- return web_contents_view_mac::CreateWebContentsView(web_contents, NULL);
-#else
+WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
+ content::WebContents* web_contents) {
return NULL;
-#endif
}
void ShellContentBrowserClient::RenderViewHostCreated(

Powered by Google App Engine
This is Rietveld 408576698