diff options
Diffstat (limited to 'apps/shell/app/shell_main_delegate.cc')
-rw-r--r-- | apps/shell/app/shell_main_delegate.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/shell/app/shell_main_delegate.cc b/apps/shell/app/shell_main_delegate.cc index 7043498..2e98a1d 100644 --- a/apps/shell/app/shell_main_delegate.cc +++ b/apps/shell/app/shell_main_delegate.cc @@ -67,11 +67,16 @@ void ShellMainDelegate::PreSandboxStartup() { } content::ContentBrowserClient* ShellMainDelegate::CreateContentBrowserClient() { - browser_client_.reset( - new apps::ShellContentBrowserClient(CreateShellBrowserMainDelegate())); + browser_client_.reset(CreateShellContentBrowserClient()); return browser_client_.get(); } +content::ContentBrowserClient* +ShellMainDelegate::CreateShellContentBrowserClient() { + return new apps::ShellContentBrowserClient( + new DefaultShellBrowserMainDelegate()); +} + content::ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { renderer_client_.reset( @@ -79,10 +84,6 @@ ShellMainDelegate::CreateContentRendererClient() { return renderer_client_.get(); } -ShellBrowserMainDelegate* ShellMainDelegate::CreateShellBrowserMainDelegate() { - return new DefaultShellBrowserMainDelegate(); -} - scoped_ptr<ShellRendererMainDelegate> ShellMainDelegate::CreateShellRendererMainDelegate() { return scoped_ptr<ShellRendererMainDelegate>(); |