| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 298aa448d407c82360b86abcc5b7502552b49f07..cfbac2d6a09f1cca61ae278669a8e9aec4499a23 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -201,6 +201,7 @@
|
| #endif
|
|
|
| #if defined(USE_AURA)
|
| +#include "chrome/browser/ui/aura/chrome_shell_delegate.h"
|
| #include "ui/aura/desktop.h"
|
| #include "ui/aura_shell/shell.h"
|
| #endif
|
| @@ -1369,7 +1370,8 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunInternal() {
|
| child_process_logging::SetCommandLine(CommandLine::ForCurrentProcess());
|
|
|
| #if defined(USE_AURA)
|
| - aura_shell::Shell::GetInstance();
|
| + // Shell takes ownership of ChromeShellDelegate.
|
| + aura_shell::Shell::GetInstance()->SetDelegate(new ChromeShellDelegate);
|
| #elif defined(TOOLKIT_VIEWS)
|
| views::Widget::SetPureViews(
|
| CommandLine::ForCurrentProcess()->HasSwitch(switches::kUsePureViews));
|
|
|