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

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

Issue 13926010: ui/app_list: Remove unnecessary scoped_ptr ".get()" calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 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);
« ui/app_list/cocoa/apps_grid_view_item.mm ('K') | « ui/app_list/views/app_list_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698