commit | b2695fc92697a1e247339d5b539d4c63acfcf0b2 | [log] [tgz] |
---|---|---|
author | kylechar <[email protected]> | Wed Apr 24 14:51:20 2019 |
committer | Commit Bot <[email protected]> | Wed Apr 24 14:51:20 2019 |
tree | 84e46a2e569b6b2fe261b026d3551065f70fd758 | |
parent | 42e9147137a44fa6a6c3cc7abbeb3246d8bff6ab [diff] [blame] |
base: Cleanup callback types (part 2). Remove some usage of deprecated callback types in base/*. Where possible convert to the corresponding once type, otherwise replace with the repeating type. Bug: 714018 Change-Id: Idb7bf334fb06a407bf65e4ffb4cc2e19dd8a5195 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1572809 Commit-Queue: kylechar <[email protected]> Reviewed-by: François Doray <[email protected]> Cr-Commit-Position: refs/heads/master@{#653580}
diff --git a/base/callback_list_unittest.nc b/base/callback_list_unittest.nc index 7347f76..c6af89a 100644 --- a/base/callback_list_unittest.nc +++ b/base/callback_list_unittest.nc
@@ -47,7 +47,7 @@ FooListener f; CallbackList<void(std::unique_ptr<Foo>)> c1; std::unique_ptr<CallbackList<void(std::unique_ptr<Foo>)>::Subscription> sub = - c1.Add(Bind(&FooListener::GotAScopedFoo, Unretained(&f))); + c1.Add(BindRepeating(&FooListener::GotAScopedFoo, Unretained(&f))); c1.Notify(std::unique_ptr<Foo>(new Foo())); }