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

Unified Diff: ui/app_list/views/search_result_view.cc

Issue 2339523004: Remove old (dead) app list code. (Closed)
Patch Set: Address nonbistytftatl review. Created 4 years, 3 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: ui/app_list/views/search_result_view.cc
diff --git a/ui/app_list/views/search_result_view.cc b/ui/app_list/views/search_result_view.cc
index 324cd5706ad7b281ce7e8d7cbb24a6994a3b0b9a..09c576816ffb7371f3f5a3712c1fd08b5aa3614f 100644
--- a/ui/app_list/views/search_result_view.cc
+++ b/ui/app_list/views/search_result_view.cc
@@ -246,15 +246,10 @@ void SearchResultView::OnPaint(gfx::Canvas* canvas) {
return;
gfx::Rect content_rect(rect);
- if (!switches::IsExperimentalAppListEnabled())
- content_rect.set_height(rect.height() - kBorderSize);
-
const bool selected = list_view_->IsResultViewSelected(this);
const bool hover = state() == STATE_HOVERED || state() == STATE_PRESSED;
- canvas->FillRect(content_rect, switches::IsExperimentalAppListEnabled()
- ? kCardBackgroundColor
- : kContentsBackgroundColor);
+ canvas->FillRect(content_rect, kCardBackgroundColor);
// Possibly call FillRect a second time (these colours are partially
// transparent, so the previous FillRect is not redundant).
@@ -263,7 +258,7 @@ void SearchResultView::OnPaint(gfx::Canvas* canvas) {
else if (hover)
canvas->FillRect(content_rect, kHighlightedColor);
- if (switches::IsExperimentalAppListEnabled() && !is_last_result_) {
+ if (!is_last_result_) {
gfx::Rect line_rect = content_rect;
line_rect.set_height(kBorderSize);
line_rect.set_y(content_rect.bottom() - kBorderSize);

Powered by Google App Engine
This is Rietveld 408576698