Commit ccadb663 authored by Charlie Hu's avatar Charlie Hu Committed by Commit Bot

[CodeHealthRotation] Migrate browser/ui/profile_error_dialog.cc from base::Bind to base::BindOnce

As |chrome::ShowWarningMessageBoxWithCheckbox| accepts
|base::OnceCallback| as its last parameter, the call site should use
|base::BindOnce|.

Bug: 1007635
Change-Id: I5e437d37ba1573cf552a2a51916a2e34831ffe32
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522212Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Charlie Hu <chenleihu@google.com>
Cr-Commit-Position: refs/heads/master@{#825039}
parent ca72eb60
...@@ -64,7 +64,7 @@ void ShowProfileErrorDialog(ProfileErrorType type, ...@@ -64,7 +64,7 @@ void ShowProfileErrorDialog(ProfileErrorType type,
nullptr, l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_TITLE), nullptr, l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_TITLE),
l10n_util::GetStringUTF16(message_id), l10n_util::GetStringUTF16(message_id),
l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_CHECKBOX), l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_CHECKBOX),
base::Bind(&OnProfileErrorDialogDismissed, diagnostics)); base::BindOnce(&OnProfileErrorDialogDismissed, diagnostics));
#else // BUILDFLAG(GOOGLE_CHROME_BRANDING) #else // BUILDFLAG(GOOGLE_CHROME_BRANDING)
chrome::ShowWarningMessageBox( chrome::ShowWarningMessageBox(
nullptr, l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_TITLE), nullptr, l10n_util::GetStringUTF16(IDS_PROFILE_ERROR_DIALOG_TITLE),
......
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