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

Unified Diff: ui/compositor/layer_animator.cc

Issue 982413002: base: Stop passing a non-const ref to ObserverListBase::Iterator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: observerref: fixwindowsbuild Created 5 years, 9 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/compositor/layer_animation_sequence.cc ('k') | ui/events/platform/platform_event_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animator.cc
diff --git a/ui/compositor/layer_animator.cc b/ui/compositor/layer_animator.cc
index 611647431d4c5acb61c91dd1ff2be0ffc6d68f46..7bc870300c17efe02b096a9e5f0e45f62dc56b13 100644
--- a/ui/compositor/layer_animator.cc
+++ b/ui/compositor/layer_animator.cc
@@ -801,7 +801,7 @@ void LayerAnimator::GetTargetValue(
void LayerAnimator::OnScheduled(LayerAnimationSequence* sequence) {
if (observers_.might_have_observers()) {
- ObserverListBase<LayerAnimationObserver>::Iterator it(observers_);
+ ObserverListBase<LayerAnimationObserver>::Iterator it(&observers_);
LayerAnimationObserver* obs;
while ((obs = it.GetNext()) != NULL) {
sequence->AddObserver(obs);
« no previous file with comments | « ui/compositor/layer_animation_sequence.cc ('k') | ui/events/platform/platform_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698