diff --git a/atom/browser/atom_speech_recognition_manager_delegate.cc b/atom/browser/atom_speech_recognition_manager_delegate.cc index d2e7135c9af2..d879eb9c6e9e 100644 --- a/atom/browser/atom_speech_recognition_manager_delegate.cc +++ b/atom/browser/atom_speech_recognition_manager_delegate.cc @@ -52,8 +52,8 @@ void AtomSpeechRecognitionManagerDelegate::OnAudioLevelsChange( void AtomSpeechRecognitionManagerDelegate::CheckRecognitionIsAllowed( int session_id, - base::Callback callback) { - callback.Run(true, true); + base::OnceCallback callback) { + std::move(callback).Run(true, true); } content::SpeechRecognitionEventListener* diff --git a/atom/browser/atom_speech_recognition_manager_delegate.h b/atom/browser/atom_speech_recognition_manager_delegate.h index a6b2f059f7a0..860cbc675d38 100644 --- a/atom/browser/atom_speech_recognition_manager_delegate.h +++ b/atom/browser/atom_speech_recognition_manager_delegate.h @@ -38,7 +38,8 @@ class AtomSpeechRecognitionManagerDelegate // content::SpeechRecognitionManagerDelegate: void CheckRecognitionIsAllowed( int session_id, - base::Callback callback) override; + base::OnceCallback callback) + override; content::SpeechRecognitionEventListener* GetEventListener() override; bool FilterProfanities(int render_process_id) override;