Commit 73de442e authored by Yi Gu's avatar Yi Gu Committed by Chromium LUCI CQ

[CodeHealth] Convert chrome/browser/ui/views/extensions from base::Bind and...

[CodeHealth] Convert chrome/browser/ui/views/extensions from base::Bind and base::Callback to Once/Repeating

Bug: 1152282
Change-Id: Ie6c0e8002710c9fe895f65dc60b9a4ec1e8f71d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586120Reviewed-by: default avatarCaroline Rising <corising@chromium.org>
Reviewed-by: default avatarConnie Wan <connily@chromium.org>
Commit-Queue: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836291}
parent 8d0f6ceb
...@@ -543,5 +543,5 @@ void ExtensionInstallDialogView::UpdateInstallResultHistogram(bool accepted) ...@@ -543,5 +543,5 @@ void ExtensionInstallDialogView::UpdateInstallResultHistogram(bool accepted)
// static // static
ExtensionInstallPrompt::ShowDialogCallback ExtensionInstallPrompt::ShowDialogCallback
ExtensionInstallPrompt::GetDefaultShowDialogCallback() { ExtensionInstallPrompt::GetDefaultShowDialogCallback() {
return base::Bind(&ShowExtensionInstallDialogImpl); return base::BindRepeating(&ShowExtensionInstallDialogImpl);
} }
...@@ -304,7 +304,7 @@ class IconAnimationWaiter { ...@@ -304,7 +304,7 @@ class IconAnimationWaiter {
icon)) { icon)) {
removal_watcher_ = std::make_unique<ExtensionRemovalWatcher>( removal_watcher_ = std::make_unique<ExtensionRemovalWatcher>(
browser, extension, browser, extension,
base::Bind(&IconAnimationWaiter::OnExtensionRemoved, base::BindOnce(&IconAnimationWaiter::OnExtensionRemoved,
weak_factory_.GetWeakPtr())); weak_factory_.GetWeakPtr()));
} }
virtual ~IconAnimationWaiter() = default; virtual ~IconAnimationWaiter() = default;
......
...@@ -25,7 +25,7 @@ class RequestFileSystemDialogTest : public DialogBrowserTest { ...@@ -25,7 +25,7 @@ class RequestFileSystemDialogTest : public DialogBrowserTest {
RequestFileSystemDialogView::ShowDialog( RequestFileSystemDialogView::ShowDialog(
browser()->tab_strip_model()->GetActiveWebContents(), browser()->tab_strip_model()->GetActiveWebContents(),
"RequestFileSystemDialogTest", "TestVolume", true, "RequestFileSystemDialogTest", "TestVolume", true,
base::Bind(&RequestFileSystemDialogTest::DialogCallback)); base::BindOnce(&RequestFileSystemDialogTest::DialogCallback));
} }
private: private:
......
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