| Index: content/shell/shell_application_mac.mm
|
| diff --git a/content/shell/shell_application_mac.mm b/content/shell/shell_application_mac.mm
|
| index 3afb7a6724822b2c8ca1a21ca7eb59b84c252065..0ccce071f9f9bd45bf8fac003713536671e1717b 100644
|
| --- a/content/shell/shell_application_mac.mm
|
| +++ b/content/shell/shell_application_mac.mm
|
| @@ -7,6 +7,7 @@
|
| #include "base/auto_reset.h"
|
| #include "content/shell/shell.h"
|
| #include "content/shell/shell_browser_context.h"
|
| +#include "content/shell/shell_content_browser_client.h"
|
| #include "googleurl/src/gurl.h"
|
|
|
| @implementation ShellCrApplication
|
| @@ -25,7 +26,10 @@
|
| }
|
|
|
| - (IBAction)newDocument:(id)sender {
|
| - content::Shell::CreateNewWindow(content::ShellBrowserContext::GetInstance(),
|
| + content::ShellBrowserContext* browserContext =
|
| + static_cast<content::ShellContentBrowserClient*>(
|
| + content::GetContentClient()->browser())->browser_context();
|
| + content::Shell::CreateNewWindow(browserContext,
|
| GURL("about:blank"),
|
| NULL,
|
| MSG_ROUTING_NONE,
|
|
|