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

Unified Diff: base/observer_list_threadsafe.h

Issue 821453003: Update legacy Tuple-using code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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 | « base/memory/raw_scoped_refptr_mismatch_checker.h ('k') | base/tuple.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/observer_list_threadsafe.h
diff --git a/base/observer_list_threadsafe.h b/base/observer_list_threadsafe.h
index 70b4f11ffa60ca252f5a5d7b69ed047851ea41ca..ff4843e431f579a338f3af2ed3d1fde53c18c69e 100644
--- a/base/observer_list_threadsafe.h
+++ b/base/observer_list_threadsafe.h
@@ -169,35 +169,35 @@ class ObserverListThreadSafe
// been Notified. The notification may still be pending delivery.
template <class Method>
void Notify(Method m) {
- UnboundMethod<ObserverType, Method, Tuple0> method(m, MakeTuple());
- Notify<Method, Tuple0>(method);
+ UnboundMethod<ObserverType, Method, Tuple<>> method(m, MakeTuple());
+ Notify<Method, Tuple<>>(method);
}
template <class Method, class A>
void Notify(Method m, const A& a) {
- UnboundMethod<ObserverType, Method, Tuple1<A> > method(m, MakeTuple(a));
- Notify<Method, Tuple1<A> >(method);
+ UnboundMethod<ObserverType, Method, Tuple<A> > method(m, MakeTuple(a));
+ Notify<Method, Tuple<A> >(method);
}
template <class Method, class A, class B>
void Notify(Method m, const A& a, const B& b) {
- UnboundMethod<ObserverType, Method, Tuple2<A, B> > method(
+ UnboundMethod<ObserverType, Method, Tuple<A, B> > method(
m, MakeTuple(a, b));
- Notify<Method, Tuple2<A, B> >(method);
+ Notify<Method, Tuple<A, B> >(method);
}
template <class Method, class A, class B, class C>
void Notify(Method m, const A& a, const B& b, const C& c) {
- UnboundMethod<ObserverType, Method, Tuple3<A, B, C> > method(
+ UnboundMethod<ObserverType, Method, Tuple<A, B, C> > method(
m, MakeTuple(a, b, c));
- Notify<Method, Tuple3<A, B, C> >(method);
+ Notify<Method, Tuple<A, B, C> >(method);
}
template <class Method, class A, class B, class C, class D>
void Notify(Method m, const A& a, const B& b, const C& c, const D& d) {
- UnboundMethod<ObserverType, Method, Tuple4<A, B, C, D> > method(
+ UnboundMethod<ObserverType, Method, Tuple<A, B, C, D> > method(
m, MakeTuple(a, b, c, d));
- Notify<Method, Tuple4<A, B, C, D> >(method);
+ Notify<Method, Tuple<A, B, C, D> >(method);
}
// TODO(mbelshe): Add more wrappers for Notify() with more arguments.
« no previous file with comments | « base/memory/raw_scoped_refptr_mismatch_checker.h ('k') | base/tuple.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698