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

Unified Diff: ui/compositor/layer_animator_collection.cc

Issue 2126433002: Use container::back() and container::pop_back() in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pre-increment Created 4 years, 5 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/base/win/open_file_name_win_unittest.cc ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animator_collection.cc
diff --git a/ui/compositor/layer_animator_collection.cc b/ui/compositor/layer_animator_collection.cc
index ce4d70874d805d5d8353b029fe00cf589c359e4b..54951f0c2a369b7fe26223ed95f7010edbfc8631 100644
--- a/ui/compositor/layer_animator_collection.cc
+++ b/ui/compositor/layer_animator_collection.cc
@@ -24,7 +24,7 @@ LayerAnimatorCollection::~LayerAnimatorCollection() {
void LayerAnimatorCollection::StartAnimator(
scoped_refptr<LayerAnimator> animator) {
DCHECK_EQ(0U, animators_.count(animator));
- if (!animators_.size())
+ if (animators_.empty())
last_tick_time_ = base::TimeTicks::Now();
animators_.insert(animator);
if (animators_.size() == 1U && compositor_)
« no previous file with comments | « ui/base/win/open_file_name_win_unittest.cc ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698