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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.cc

Issue 654123004: Revert of 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: 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: extensions/browser/guest_view/web_view/web_view_guest.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.cc b/extensions/browser/guest_view/web_view/web_view_guest.cc
index a5f78da00879fd0e5f090db761cfd43f16ecd2b0..ab95833d07e735f52fd02269e22b5069a9b22f02 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.cc
+++ b/extensions/browser/guest_view/web_view/web_view_guest.cc
@@ -377,15 +377,8 @@
// WebContents::GetRenderWidgetHostView will return the RWHV of an
// interstitial page if one is showing at this time. We only want opacity
// to apply to web pages.
- if (guest_opaque_) {
- web_contents()
- ->GetRenderViewHost()
- ->GetView()
- ->SetBackgroundColorToDefault();
- } else {
- web_contents()->GetRenderViewHost()->GetView()->SetBackgroundColor(
- SK_ColorTRANSPARENT);
- }
+ web_contents()->GetRenderViewHost()->GetView()->
+ SetBackgroundOpaque(guest_opaque_);
if (web_view_guest_delegate_)
web_view_guest_delegate_->OnGuestReady();
}
@@ -1039,15 +1032,7 @@
if (!web_contents()->GetRenderViewHost()->GetView())
return;
- if (guest_opaque_) {
- web_contents()
- ->GetRenderViewHost()
- ->GetView()
- ->SetBackgroundColorToDefault();
- } else {
- web_contents()->GetRenderViewHost()->GetView()->SetBackgroundColor(
- SK_ColorTRANSPARENT);
- }
+ web_contents()->GetRenderViewHost()->GetView()->SetBackgroundOpaque(!allow);
}
bool WebViewGuest::LoadDataWithBaseURL(const std::string& data_url,
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | extensions/components/native_app_window/native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698