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

Unified Diff: cc/input/top_controls_manager.h

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: cc/input/top_controls_manager.h
diff --git a/cc/input/top_controls_manager.h b/cc/input/top_controls_manager.h
index 0ae1818a256df0bac9712487d10a8fd789e7190d..995577db01b81a912cbc0ca93a21b9cc71c06f8b 100644
--- a/cc/input/top_controls_manager.h
+++ b/cc/input/top_controls_manager.h
@@ -44,7 +44,7 @@ class CC_EXPORT TopControlsManager
float TopControlsShownRatio() const;
float TopControlsHeight() const;
- bool has_animation() const { return top_controls_animation_; }
+ bool has_animation() const { return !!top_controls_animation_; }
AnimationDirection animation_direction() { return animation_direction_; }
void UpdateTopControlsState(TopControlsState constraints,

Powered by Google App Engine
This is Rietveld 408576698