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

Unified Diff: ash/wm/image_cursors.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/wm/gestures/two_finger_drag_handler.cc ('k') | ash/wm/maximize_bubble_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/image_cursors.cc
diff --git a/ash/wm/image_cursors.cc b/ash/wm/image_cursors.cc
index c1bd7e7e3cc1c438aad619c801c240a0a5dca799..3d8e4aba51b9adf01140d4e7f5cbd31a0d87acf4 100644
--- a/ash/wm/image_cursors.cc
+++ b/ash/wm/image_cursors.cc
@@ -61,7 +61,7 @@ ImageCursors::~ImageCursors() {
}
gfx::Display ImageCursors::GetDisplay() const {
- if (!cursor_loader_.get()) {
+ if (!cursor_loader_) {
NOTREACHED();
// Returning default on release build as it's not serious enough to crash
// even if this ever happens.
@@ -72,7 +72,7 @@ gfx::Display ImageCursors::GetDisplay() const {
bool ImageCursors::SetDisplay(const gfx::Display& display) {
float device_scale_factor = display.device_scale_factor();
- if (!cursor_loader_.get()) {
+ if (!cursor_loader_) {
cursor_loader_.reset(ui::CursorLoader::Create());
} else if (cursor_loader_->display().rotation() == display.rotation() &&
cursor_loader_->display().device_scale_factor() ==
« no previous file with comments | « ash/wm/gestures/two_finger_drag_handler.cc ('k') | ash/wm/maximize_bubble_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698