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

Unified Diff: content/shell/shell_application_mac.mm

Issue 9982011: Mac content shell: Fix new browser window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | content/shell/shell_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | content/shell/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698