chore: convert more files away from base::Bind (#18121)
* chore: convert more files away from base::Bind * use BindOnce for JsAsker
This commit is contained in:
parent
c25c31e018
commit
0755857a0c
24 changed files with 86 additions and 71 deletions
|
@ -92,9 +92,9 @@ void PlatformNotificationService::DisplayNotification(
|
|||
if (notification) {
|
||||
browser_client_->WebNotificationAllowed(
|
||||
render_process_host->GetID(),
|
||||
base::Bind(&OnWebNotificationAllowed, notification,
|
||||
notification_resources.notification_icon,
|
||||
notification_data));
|
||||
base::BindRepeating(&OnWebNotificationAllowed, notification,
|
||||
notification_resources.notification_icon,
|
||||
notification_data));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -415,7 +415,7 @@ IFACEMETHODIMP ToastEventHandler::Invoke(
|
|||
IInspectable* args) {
|
||||
base::PostTaskWithTraits(
|
||||
FROM_HERE, {content::BrowserThread::UI},
|
||||
base::Bind(&Notification::NotificationClicked, notification_));
|
||||
base::BindOnce(&Notification::NotificationClicked, notification_));
|
||||
if (IsDebuggingNotifications())
|
||||
LOG(INFO) << "Notification clicked";
|
||||
|
||||
|
@ -427,7 +427,7 @@ IFACEMETHODIMP ToastEventHandler::Invoke(
|
|||
ABI::Windows::UI::Notifications::IToastDismissedEventArgs* e) {
|
||||
base::PostTaskWithTraits(
|
||||
FROM_HERE, {content::BrowserThread::UI},
|
||||
base::Bind(&Notification::NotificationDismissed, notification_));
|
||||
base::BindOnce(&Notification::NotificationDismissed, notification_));
|
||||
if (IsDebuggingNotifications())
|
||||
LOG(INFO) << "Notification dismissed";
|
||||
|
||||
|
@ -439,7 +439,7 @@ IFACEMETHODIMP ToastEventHandler::Invoke(
|
|||
ABI::Windows::UI::Notifications::IToastFailedEventArgs* e) {
|
||||
base::PostTaskWithTraits(
|
||||
FROM_HERE, {content::BrowserThread::UI},
|
||||
base::Bind(&Notification::NotificationFailed, notification_));
|
||||
base::BindOnce(&Notification::NotificationFailed, notification_));
|
||||
if (IsDebuggingNotifications())
|
||||
LOG(INFO) << "Notification failed";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue