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

Unified Diff: headless/lib/browser/headless_browser_impl_mac.mm

Issue 2792883002: Revert of [headless] Use individual aura::WindowTreeHosts per WebContents. (Closed)
Patch Set: Created 3 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
Index: headless/lib/browser/headless_browser_impl_mac.mm
diff --git a/headless/lib/browser/headless_browser_impl_mac.mm b/headless/lib/browser/headless_browser_impl_mac.mm
index f5f5f7e83e749fa40498a41c2f9efe5254e9261f..e1911162d6e0b7e137cff2676e2aa8f73b329e81 100644
--- a/headless/lib/browser/headless_browser_impl_mac.mm
+++ b/headless/lib/browser/headless_browser_impl_mac.mm
@@ -15,8 +15,8 @@
void HeadlessBrowserImpl::PlatformInitializeWebContents(
const gfx::Size& initial_size,
- HeadlessWebContentsImpl* web_contents) {
- NSView* web_view = web_contents->web_contents()->GetNativeView();
+ content::WebContents* web_contents) {
+ NSView* web_view = web_contents->GetNativeView();
[web_view setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable)];
NSRect frame = NSMakeRect(0, 0, initial_size.width(), initial_size.height());
« no previous file with comments | « headless/lib/browser/headless_browser_impl_aura.cc ('k') | headless/lib/browser/headless_web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698