Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6077)

Unified Diff: chrome/browser/extensions/extension_disabled_ui.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_disabled_ui.cc
diff --git a/chrome/browser/extensions/extension_disabled_ui.cc b/chrome/browser/extensions/extension_disabled_ui.cc
index d019e8e5bacab378a611f54e2ab42f9e05fd069e..8f66dccf2f1aa50f24174ef90e6aa5516c82d860 100644
--- a/chrome/browser/extensions/extension_disabled_ui.cc
+++ b/chrome/browser/extensions/extension_disabled_ui.cc
@@ -291,8 +291,8 @@ void ExtensionDisabledGlobalError::BubbleViewAcceptButtonPressed(
// Delay extension reenabling so this bubble closes properly.
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
- base::Bind(&ExtensionService::GrantPermissionsAndEnableExtension,
- service_->AsWeakPtr(), extension_));
+ base::BindOnce(&ExtensionService::GrantPermissionsAndEnableExtension,
+ service_->AsWeakPtr(), extension_));
}
void ExtensionDisabledGlobalError::BubbleViewCancelButtonPressed(
@@ -309,10 +309,10 @@ void ExtensionDisabledGlobalError::BubbleViewCancelButtonPressed(
// immediately, to close the bubble properly. See crbug.com/121544.
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
- base::Bind(&extensions::ExtensionUninstallDialog::ConfirmUninstall,
- uninstall_dialog_->AsWeakPtr(), extension_,
- extensions::UNINSTALL_REASON_EXTENSION_DISABLED,
- extensions::UNINSTALL_SOURCE_PERMISSIONS_INCREASE));
+ base::BindOnce(&extensions::ExtensionUninstallDialog::ConfirmUninstall,
+ uninstall_dialog_->AsWeakPtr(), extension_,
+ extensions::UNINSTALL_REASON_EXTENSION_DISABLED,
+ extensions::UNINSTALL_SOURCE_PERMISSIONS_INCREASE));
}
bool ExtensionDisabledGlobalError::ShouldCloseOnDeactivate() const {

Powered by Google App Engine
This is Rietveld 408576698