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

Unified Diff: ui/app_list/views/app_list_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/app_list_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index a6892453639cc6068ef8e2d172a8b4beda9bf590..f3307d10ca7a514747bf99ada675106cdcea63e2 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -128,7 +128,7 @@ void AppListView::ShowWhenReady() {
void AppListView::Close() {
app_list_main_view_->Close();
- if (delegate_.get())
+ if (delegate_)
delegate_->Dismiss();
else
GetWidget()->Close();
@@ -163,7 +163,7 @@ views::View* AppListView::GetInitiallyFocusedView() {
}
gfx::ImageSkia AppListView::GetWindowIcon() {
- if (delegate_.get())
+ if (delegate_)
return delegate_->GetWindowIcon();
return gfx::ImageSkia();

Powered by Google App Engine
This is Rietveld 408576698