Commit 89e3ad14 authored by Daniel Cheng's avatar Daniel Cheng Committed by Commit Bot

[chromecast] Delete unnecessary null check for RenderView::GetWebView().

A content::RenderView should always have a valid blink::WebView if it is
observable by non-content internal code.

Change-Id: I4afd471b5b46e16865c5b46d3bbdc23a06b7f95a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2131246Reviewed-by: default avatarSean Topping <seantopping@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755419}
parent 2f70f854
...@@ -166,13 +166,11 @@ void CastContentRendererClient::RenderThreadStarted() { ...@@ -166,13 +166,11 @@ void CastContentRendererClient::RenderThreadStarted() {
void CastContentRendererClient::RenderViewCreated( void CastContentRendererClient::RenderViewCreated(
content::RenderView* render_view) { content::RenderView* render_view) {
blink::WebView* webview = render_view->GetWebView(); blink::WebView* webview = render_view->GetWebView();
if (webview) { webview->SetBaseBackgroundColor(chromecast::GetSwitchValueColor(
webview->SetBaseBackgroundColor(chromecast::GetSwitchValueColor( switches::kCastAppBackgroundColor, SK_ColorBLACK));
switches::kCastAppBackgroundColor, SK_ColorBLACK)); // Disable application cache as Chromecast doesn't support off-line
// Disable application cache as Chromecast doesn't support off-line // application running.
// application running. webview->GetSettings()->SetOfflineWebApplicationCacheEnabled(false);
webview->GetSettings()->SetOfflineWebApplicationCacheEnabled(false);
}
} }
void CastContentRendererClient::RenderFrameCreated( void CastContentRendererClient::RenderFrameCreated(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment