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

Unified Diff: base/bind.h

Issue 2394023003: Move out OnceCallback and RepeatingCallback from internal namespace (Closed)
Patch Set: rebase Created 4 years, 2 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_unittest.cc » ('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 ec707a0618f288431e373ffe56b3813c409754a3..ce717972e26cde23941d545ef5e3f8832309466e 100644
--- a/base/bind.h
+++ b/base/bind.h
@@ -23,7 +23,6 @@
// terms and concepts.
namespace base {
-namespace internal {
// Bind as OnceCallback.
template <typename Functor, typename... Args>
@@ -69,16 +68,14 @@ BindRepeating(Functor&& functor, Args&&... args) {
std::forward<Args>(args)...));
}
-} // namespace internal
-
// Unannotated Bind.
// TODO(tzik): Deprecate this and migrate to OnceCallback and
// RepeatingCallback, once they get ready.
template <typename Functor, typename... Args>
inline Callback<MakeUnboundRunType<Functor, Args...>>
Bind(Functor&& functor, Args&&... args) {
- return internal::BindRepeating(std::forward<Functor>(functor),
- std::forward<Args>(args)...);
+ return BindRepeating(std::forward<Functor>(functor),
+ std::forward<Args>(args)...);
}
} // namespace base
« no previous file with comments | « no previous file | base/bind_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698