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

Unified Diff: base/callback.h.pump

Issue 7780016: Make Callback.Equals() only work when comparing against the same type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing file. Created 9 years, 3 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 | « base/callback.h ('k') | base/callback_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/callback.h.pump
diff --git a/base/callback.h.pump b/base/callback.h.pump
index 3b9aa733bd93ab865d244c11c1e653e4b0c173e6..82b643e49488cea407ce95e4aecbe225e0c383ab 100644
--- a/base/callback.h.pump
+++ b/base/callback.h.pump
@@ -274,6 +274,10 @@ $for ARG , [[typename internal::ParamTraits<A$(ARG)>::ForwardType]]);
callback_type_does_not_match_bind_result);
}
+ bool Equals(const Callback& other) const {
+ return CallbackBase::Equals(other);
+ }
+
R Run($for ARG ,
[[typename internal::ParamTraits<A$(ARG)>::ForwardType a$(ARG)]]) const {
PolymorphicInvoke f =
« no previous file with comments | « base/callback.h ('k') | base/callback_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698