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

Unified Diff: base/bind_internal.h.pump

Issue 15836004: Update base/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/bind_internal.h ('k') | base/observer_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind_internal.h.pump
diff --git a/base/bind_internal.h.pump b/base/bind_internal.h.pump
index ac228e6eeac9e9c4123f99fb8f458cd561b565d8..d315e8573fa5acd1e6bb89034cbb2f3504e6ae7f 100644
--- a/base/bind_internal.h.pump
+++ b/base/bind_internal.h.pump
@@ -286,6 +286,7 @@ struct InvokeHelper;
$for ARITY [[
$range ARG 1..ARITY
+$range ARG2 2..ARITY
awong 2013/06/03 20:13:42 Can we call this ARG_FROM_2 or maybe even somethin
template <typename ReturnType, typename Runnable[[]]
$if ARITY > 0 [[,]] $for ARG , [[typename A$(ARG)]]>
@@ -318,7 +319,13 @@ $if ARITY > 0[[, ]] $for ARG , [[A$(ARG) a$(ARG)]]) {
return;
}
- runnable.Run($for ARG , [[CallbackForward(a$(ARG))]]);
+$if ARITY > 1 [[
+ runnable.Run(a1.get(), $for ARG2 , [[CallbackForward(a$(ARG2))]]);
+
+]] $else [[
+ runnable.Run(a1.get());
+
+]]
}
};
« no previous file with comments | « base/bind_internal.h ('k') | base/observer_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698