Chromium Code Reviews| 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 19c847efd9a37f444b56af7a5cb814919cb71520..aec4de992e7f035a899929239e6e76722c25c907 100644 |
| --- a/ui/app_list/views/search_result_view.cc |
| +++ b/ui/app_list/views/search_result_view.cc |
| @@ -203,7 +203,7 @@ void SearchResultView::OnPaint(gfx::Canvas* canvas) { |
| text_bounds.set_x(GetMirroredXWithWidthInView(text_bounds.x(), |
| text_bounds.width())); |
| - if (title_text_.get() && details_text_.get()) { |
| + if (title_text_.get() && details_text_) { |
|
xiyuan
2013/04/16 22:37:20
title_text_.get() could be changed too.
tfarina
2013/04/16 23:15:48
Done.
|
| gfx::Size title_size(text_bounds.width(), |
| title_text_->GetStringSize().height()); |
| gfx::Size details_size(text_bounds.width(), |
| @@ -219,7 +219,7 @@ void SearchResultView::OnPaint(gfx::Canvas* canvas) { |
| details_text_->SetDisplayRect(gfx::Rect(gfx::Point(text_bounds.x(), y), |
| details_size)); |
| details_text_->Draw(canvas); |
| - } else if (title_text_.get()) { |
| + } else if (title_text_) { |
| gfx::Size title_size(text_bounds.width(), |
| title_text_->GetStringSize().height()); |
| gfx::Rect centered_title_rect(text_bounds); |