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

Unified Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 637083002: Sets the default background color of inline signin and user manager to grey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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: content/browser/frame_host/render_widget_host_view_guest.cc
diff --git a/content/browser/frame_host/render_widget_host_view_guest.cc b/content/browser/frame_host/render_widget_host_view_guest.cc
index 186e27fb08075f798fb6ea69b9700ad37e5c3cb1..48043158bac39326ddd41ac4654b203549301684 100644
--- a/content/browser/frame_host/render_widget_host_view_guest.cc
+++ b/content/browser/frame_host/render_widget_host_view_guest.cc
@@ -359,14 +359,15 @@ void RenderWidgetHostViewGuest::CopyFromCompositingSurface(
guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback);
}
-void RenderWidgetHostViewGuest::SetBackgroundOpaque(bool opaque) {
+void RenderWidgetHostViewGuest::SetBackgroundColor(SkColor color) {
// Content embedders can toggle opaque backgrounds through this API.
// We plumb the value here so that BrowserPlugin updates its compositing
// state in response to this change. We also want to preserve this flag
// after recovering from a crash so we let BrowserPluginGuest store it.
if (!guest_)
return;
- RenderWidgetHostViewBase::SetBackgroundOpaque(opaque);
+ RenderWidgetHostViewBase::SetBackgroundColor(color);
+ bool opaque = GetBackgroundOpaque();
host_->SetBackgroundOpaque(opaque);
guest_->SetContentsOpaque(opaque);
}

Powered by Google App Engine
This is Rietveld 408576698