Commit e2b4d1b7 authored by Alex Turner's avatar Alex Turner Committed by Commit Bot

Migrate chrome/tools from base::Bind to base::Bind{Once,Repeating}

base::Bind is deprecated and should be replaced with the more explicit
Once/Repeating form. The majority of chrome/tools was already migrated,
but one use remained. We fix that and enable the presubmit to avoid
any future regressions.

Bug: 1141533, 1007644
Change-Id: Iffd78f79fa65caeeb3f4a6764952a2eebd126361
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495605Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Alex Turner <alexmt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821435}
parent cce48a36
...@@ -371,7 +371,6 @@ _NOT_CONVERTED_TO_MODERN_BIND_AND_CALLBACK = '|'.join(( ...@@ -371,7 +371,6 @@ _NOT_CONVERTED_TO_MODERN_BIND_AND_CALLBACK = '|'.join((
'^chrome/browser/web_applications/', '^chrome/browser/web_applications/',
'^chrome/browser/win/', '^chrome/browser/win/',
'^chrome/test/chromedriver/server/http_handler.cc', '^chrome/test/chromedriver/server/http_handler.cc',
'^chrome/tools/',
'^chromeos/attestation/', '^chromeos/attestation/',
'^chromeos/components/', '^chromeos/components/',
'^components/cast_channel/', '^components/cast_channel/',
......
...@@ -66,8 +66,8 @@ ServiceTypePrinter::ServiceTypePrinter(ServiceDiscoveryClient* client, ...@@ -66,8 +66,8 @@ ServiceTypePrinter::ServiceTypePrinter(ServiceDiscoveryClient* client,
const std::string& service_type) const std::string& service_type)
: client_(client) { : client_(client) {
watcher_ = client_->CreateServiceWatcher( watcher_ = client_->CreateServiceWatcher(
service_type, base::Bind(&ServiceTypePrinter::OnServiceUpdated, service_type, base::BindRepeating(&ServiceTypePrinter::OnServiceUpdated,
base::Unretained(this))); base::Unretained(this)));
} }
void ServiceTypePrinter::Start() { void ServiceTypePrinter::Start() {
......
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