Commit 396d268a authored by Alexander Cooper's avatar Alexander Cooper Committed by Commit Bot

Convert base::Callback in chrome/browser/vr

Converts ModelAddedCallback and ModelRemovedCallback to base::Repeating
Callbacks to match their usage. Removes the corresponding entry from
PRESUBMIT.py

Bug: 1007635
Change-Id: I10393eea74ff16ba86f5e7118765557fca770028
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2303877
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790982}
parent 0ea63d3e
......@@ -342,7 +342,6 @@ _NOT_CONVERTED_TO_MODERN_BIND_AND_CALLBACK = '|'.join((
'^chrome/browser/tracing/chrome_tracing_delegate_browsertest.cc',
'^chrome/browser/translate/',
'^chrome/browser/ui/',
'^chrome/browser/vr/databinding/vector_binding.h',
'^chrome/browser/web_applications/',
'^chrome/browser/win/',
'^chrome/services/',
......
......@@ -21,9 +21,9 @@ namespace vr {
template <typename M, typename V>
class VectorBinding : public BindingBase {
public:
typedef VectorElementBinding<M, V> ElementBinding;
typedef base::Callback<void(ElementBinding*)> ModelAddedCallback;
typedef base::Callback<void(ElementBinding*)> ModelRemovedCallback;
using ElementBinding = VectorElementBinding<M, V>;
using ModelAddedCallback = base::RepeatingCallback<void(ElementBinding*)>;
using ModelRemovedCallback = base::RepeatingCallback<void(ElementBinding*)>;
VectorBinding(std::vector<M>* models,
const ModelAddedCallback& added_callback,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment