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

Unified Diff: ui/compositor/compositor.cc

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 years, 1 month 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/compositor.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index cc44cec3679e735e9710dc4f5f9e2a8ac78365e0..35443f459933b0a02c3632031db2acf89c161653 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -312,7 +312,7 @@ void Compositor::RemoveObserver(CompositorObserver* observer) {
observer_list_.RemoveObserver(observer);
}
-bool Compositor::HasObserver(CompositorObserver* observer) {
+bool Compositor::HasObserver(const CompositorObserver* observer) const {
return observer_list_.HasObserver(observer);
}
@@ -326,7 +326,8 @@ void Compositor::RemoveAnimationObserver(
animation_observer_list_.RemoveObserver(observer);
}
-bool Compositor::HasAnimationObserver(CompositorAnimationObserver* observer) {
+bool Compositor::HasAnimationObserver(
+ const CompositorAnimationObserver* observer) const {
return animation_observer_list_.HasObserver(observer);
}
« no previous file with comments | « ui/compositor/compositor.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698