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

Unified Diff: ui/aura/window.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 | « remoting/signaling/xmpp_signal_strategy.cc ('k') | ui/compositor/layer_animation_sequence.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index ab1a2da85fca8ff6911f10333006355627a5c03e..3fe502797e0ccf5d30fda8393f2b91c4d6605f63 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -262,7 +262,7 @@ Window::~Window() {
if (delegate_)
delegate_->OnWindowDestroyed(this);
- ObserverListBase<WindowObserver>::Iterator iter(observers_);
+ ObserverListBase<WindowObserver>::Iterator iter(&observers_);
for (WindowObserver* observer = iter.GetNext(); observer;
observer = iter.GetNext()) {
RemoveObserver(observer);
« no previous file with comments | « remoting/signaling/xmpp_signal_strategy.cc ('k') | ui/compositor/layer_animation_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698