diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-04 20:47:32 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-04 20:47:32 +0000 |
commit | 3560b57722a5ffa93777c522456e8348b30c82b9 (patch) | |
tree | 1d435978ca0b2fdd2b5442e6807dd7cc45a17dc9 /content/shell/shell_application_mac.mm | |
parent | 14e236c0297efef5d22b44c233f5cefc3ca9b532 (diff) | |
download | chromium_src-3560b57722a5ffa93777c522456e8348b30c82b9.zip chromium_src-3560b57722a5ffa93777c522456e8348b30c82b9.tar.gz chromium_src-3560b57722a5ffa93777c522456e8348b30c82b9.tar.bz2 |
Mac content shell: Fix new browser window.
This is a revert of most of r130140, and a better re-implementation thereof.
BUG=120153
TEST=as described
Review URL: https://chromiumcodereview.appspot.com/9982011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_application_mac.mm')
-rw-r--r-- | content/shell/shell_application_mac.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/content/shell/shell_application_mac.mm b/content/shell/shell_application_mac.mm index 3afb7a6..0ccce07 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, |