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

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: fixes 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
« no previous file with comments | « ui/app_list/pagination_model.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1ddb9587a8fbb2ec73f13199d756ee90508bc5e5 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();
@@ -197,7 +197,7 @@ void AppListView::Layout() {
void AppListView::OnWidgetDestroying(views::Widget* widget) {
BubbleDelegateView::OnWidgetDestroying(widget);
- if (delegate_.get() && widget == GetWidget())
+ if (delegate_ && widget == GetWidget())
delegate_->ViewClosing();
}
@@ -205,7 +205,7 @@ void AppListView::OnWidgetActivationChanged(views::Widget* widget,
bool active) {
// Do not called inherited function as the bubble delegate auto close
// functionality is not used.
- if (delegate_.get() && widget == GetWidget())
+ if (delegate_ && widget == GetWidget())
delegate_->ViewActivationChanged(active);
}
« no previous file with comments | « ui/app_list/pagination_model.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698