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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 1747143002: Remove WebContents::WasHidden() calls in chrome::AddRestoredTab() and TabLoader Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also remove from TabLoader, fix RenderWidgetHostViewMac Created 4 years, 10 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 | « chrome/browser/ui/browser_tabrestore.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 866a803fe6d59c97ca04fa788f8abc2f074e42b4..b3127a5211f84ec668489984e93ece809c9ee18d 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -526,6 +526,7 @@ RenderWidgetHostViewMac::RenderWidgetHostViewMac(RenderWidgetHost* widget,
// |GetNativeView()| into the view hierarchy right after calling us.
cocoa_view_ = [[[RenderWidgetHostViewCocoa alloc]
initWithRenderWidgetHostViewMac:this] autorelease];
+ [cocoa_view_ setHidden:render_widget_host_->is_hidden()];
// Paint this view host with |background_color_| when there is no content
// ready to draw.
« no previous file with comments | « chrome/browser/ui/browser_tabrestore.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698