Commit f426c2b9 authored by Ayu Ishii's avatar Ayu Ishii Committed by Commit Bot

Convert base::Bind and base::Callback in components/subresource_filter to Once/Repeating

Bug: 1007736
Change-Id: I2304f4f2bb6b031f1834fa23054027a315ef9781
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1934887Reviewed-by: default avatarCharlie Harrison <csharrison@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719229}
parent 00f0e5d9
......@@ -41,7 +41,7 @@ void TestActivationStateCallbackReceiver::Callback(
++callback_count_;
last_activation_state_ = activation_state;
if (quit_closure_)
quit_closure_.Run();
std::move(quit_closure_).Run();
}
} // namespace testing
......
......@@ -33,7 +33,7 @@ class TestActivationStateCallbackReceiver {
mojom::ActivationState last_activation_state_;
int callback_count_ = 0;
base::Closure quit_closure_;
base::OnceClosure quit_closure_;
DISALLOW_COPY_AND_ASSIGN(TestActivationStateCallbackReceiver);
};
......
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