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

Unified Diff: ash/shelf/shelf_widget.cc

Issue 14297013: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (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
« no previous file with comments | « ash/shelf/shelf_layout_manager.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_widget.cc
diff --git a/ash/shelf/shelf_widget.cc b/ash/shelf/shelf_widget.cc
index 755062249c43c6f3b917a8c732246f116379b0a3..0fe41f7be8a9fa59bb6dce40ddd165fcb00fd4ba 100644
--- a/ash/shelf/shelf_widget.cc
+++ b/ash/shelf/shelf_widget.cc
@@ -343,7 +343,7 @@ bool ShelfWidget::DelegateView::GetDimmed() const {
}
void ShelfWidget::DelegateView::SetWidgetBounds(const gfx::Rect bounds) {
- if (dimmer_.get())
+ if (dimmer_)
dimmer_->SetBounds(bounds);
}
@@ -484,7 +484,7 @@ bool ShelfWidget::GetDimsShelf() const {
}
void ShelfWidget::CreateLauncher() {
- if (!launcher_.get()) {
+ if (!launcher_) {
Shell* shell = Shell::GetInstance();
// This needs to be called before launcher_model().
shell->GetLauncherDelegate();
@@ -511,7 +511,7 @@ bool ShelfWidget::IsLauncherVisible() const {
}
void ShelfWidget::SetLauncherVisibility(bool visible) {
- if (launcher_.get())
+ if (launcher_)
launcher_->SetVisible(visible);
}
« no previous file with comments | « ash/shelf/shelf_layout_manager.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698