Index: chrome/browser/ui/app_list/search_answer_web_contents_delegate.cc |
diff --git a/chrome/browser/ui/app_list/search_answer_web_contents_delegate.cc b/chrome/browser/ui/app_list/search_answer_web_contents_delegate.cc |
index a0f9487b81b9526ba734af65bce7e9b3776403b5..d9ba2e5622d3dc1883112802bb3f3d0c50ceed1a 100644 |
--- a/chrome/browser/ui/app_list/search_answer_web_contents_delegate.cc |
+++ b/chrome/browser/ui/app_list/search_answer_web_contents_delegate.cc |
@@ -21,7 +21,6 @@ |
#include "ui/app_list/app_list_features.h" |
#include "ui/app_list/app_list_model.h" |
#include "ui/app_list/search_box_model.h" |
-#include "ui/views/controls/webview/web_contents_set_background_color.h" |
#include "ui/views/controls/webview/webview.h" |
#include "ui/views/widget/widget.h" |
@@ -106,11 +105,6 @@ |
web_view_->SetFocusBehavior(views::View::FocusBehavior::NEVER); |
model->AddObserver(this); |
- |
- // Make the webview transparent since it's going to be shown on top of a |
- // highlightable button. |
- views::WebContentsSetBackgroundColor::CreateForWebContentsWithColor( |
- web_contents_.get(), SK_ColorTRANSPARENT); |
} |
SearchAnswerWebContentsDelegate::~SearchAnswerWebContentsDelegate() { |
@@ -174,7 +168,8 @@ |
IsCardSizeOk(pref_size) || features::IsAnswerCardDarkRunEnabled(); |
model_->SetSearchAnswerAvailable(is_card_size_ok_ && received_answer_ && |
!web_contents_->IsLoading()); |
- web_view_->SetPreferredSize(pref_size); |
+ if (!features::IsAnswerCardDarkRunEnabled()) |
+ web_view_->SetPreferredSize(pref_size); |
if (!answer_loaded_time_.is_null()) { |
UMA_HISTOGRAM_TIMES("SearchAnswer.ResizeAfterLoadTime", |
base::TimeTicks::Now() - answer_loaded_time_); |