Speech recognition: Use BindOnce / OnceCallback / OnceClosure where applicable

https://chromium-review.googlesource.com/c/565762
This commit is contained in:
Aleksei Kuzmin 2017-08-21 00:53:03 +03:00 committed by Cheng Zhao
parent 5831a5ffa1
commit 9566904838
2 changed files with 4 additions and 3 deletions

View file

@ -52,8 +52,8 @@ void AtomSpeechRecognitionManagerDelegate::OnAudioLevelsChange(
void AtomSpeechRecognitionManagerDelegate::CheckRecognitionIsAllowed(
int session_id,
base::Callback<void(bool ask_user, bool is_allowed)> callback) {
callback.Run(true, true);
base::OnceCallback<void(bool ask_user, bool is_allowed)> callback) {
std::move(callback).Run(true, true);
}
content::SpeechRecognitionEventListener*