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

Unified Diff: content/shell/shell_content_browser_client.cc

Issue 9190018: Support sharing of ContentMain and BrowserMain code with embedded use cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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/shell/shell_content_browser_client.cc
===================================================================
--- content/shell/shell_content_browser_client.cc (revision 117304)
+++ content/shell/shell_content_browser_client.cc (working copy)
@@ -20,8 +20,10 @@
namespace content {
-ShellContentBrowserClient::ShellContentBrowserClient()
- : shell_browser_main_parts_(NULL) {
+ShellContentBrowserClient::ShellContentBrowserClient(
+ ShellMainDelegate* delegate)
+ : delegate_(delegate),
+ shell_browser_main_parts_(NULL) {
}
ShellContentBrowserClient::~ShellContentBrowserClient() {
@@ -29,7 +31,7 @@
BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts(
const content::MainFunctionParams& parameters) {
- return new ShellBrowserMainParts(parameters);
+ return new ShellBrowserMainParts(delegate_, parameters);
}
TabContentsView* ShellContentBrowserClient::CreateTabContentsView(

Powered by Google App Engine
This is Rietveld 408576698