tests: Convert usage of base::Bind to Once or Repeating (see issue #3140)

This commit is contained in:
Marshall Greenblatt
2021-06-19 15:54:45 -04:00
parent ed1840ddb5
commit 529b91bc6e
90 changed files with 1430 additions and 1332 deletions

View File

@@ -1402,8 +1402,9 @@ class OSRTestHandler : public RoutingTestHandler,
void DestroySucceededTestSoon() {
if (succeeded())
return;
if (++event_count_ == event_total_)
CefPostTask(TID_UI, base::Bind(&OSRTestHandler::DestroyTest, this));
if (++event_count_ == event_total_) {
CefPostTask(TID_UI, base::BindOnce(&OSRTestHandler::DestroyTest, this));
}
}
void DestroyTest() override {