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

Unified Diff: components/leveldb/remote_iterator_unittest.cc

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « components/leveldb/leveldb_service_unittest.cc ('k') | components/mus/gles2/command_buffer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/remote_iterator_unittest.cc
diff --git a/components/leveldb/remote_iterator_unittest.cc b/components/leveldb/remote_iterator_unittest.cc
index 714dae167ed5d0a7c245b3c65e8949962519bbb1..bd6167981913fb1a89c4736777ba6c442b82814f 100644
--- a/components/leveldb/remote_iterator_unittest.cc
+++ b/components/leveldb/remote_iterator_unittest.cc
@@ -14,9 +14,12 @@
namespace leveldb {
namespace {
+template <typename T>
+void DoCapture(T* t, T got_t) { *t = std::move(got_t); }
+
template <typename T1>
-mojo::Callback<void(T1)> Capture(T1* t1) {
- return [t1](T1 got_t1) { *t1 = std::move(got_t1); };
+base::Callback<void(T1)> Capture(T1* t1) {
+ return base::Bind(&DoCapture<T1>, t1);
}
class RemoteIteratorTest : public shell::test::ShellTest {
« no previous file with comments | « components/leveldb/leveldb_service_unittest.cc ('k') | components/mus/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698