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

Unified Diff: base/bind.h

Issue 1699123002: Unify BindState refcount management into the bound arguments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +comment Created 4 years, 10 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 | « no previous file | base/bind_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind.h
diff --git a/base/bind.h b/base/bind.h
index 3a20feb79116c3b95179d6bdd25fe5e7f859d41d..46dbb913bee1d0bc17825fec1dbced0719c1b350 100644
--- a/base/bind.h
+++ b/base/bind.h
@@ -55,7 +55,7 @@ struct MakeUnboundRunTypeImpl {
typename BindState<
typename FunctorTraits<Functor>::RunnableType,
typename FunctorTraits<Functor>::RunType,
- typename std::decay<Args>::type...>::UnboundRunType;
+ Args...>::UnboundRunType;
};
} // namespace internal
@@ -100,8 +100,7 @@ Bind(Functor functor, Args&&... args) {
!internal::HasRefCountedParamAsRawPtr<is_method, Args...>::value,
"a parameter is a refcounted type and needs scoped_refptr");
- using BindState = internal::BindState<
- RunnableType, RunType, typename std::decay<Args>::type...>;
+ using BindState = internal::BindState<RunnableType, RunType, Args...>;
return Callback<typename BindState::UnboundRunType>(
new BindState(internal::MakeRunnable(functor),
« no previous file with comments | « no previous file | base/bind_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698