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

Unified Diff: chrome/browser/speech/speech_input_extension_api.cc

Issue 10694106: Added support for multiple parameters to Extension API callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced. Created 8 years, 5 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/speech/speech_input_extension_api.cc
diff --git a/chrome/browser/speech/speech_input_extension_api.cc b/chrome/browser/speech/speech_input_extension_api.cc
index 23afea06e5754a6be9643b6973bd877119390652..f3fd65edf345356e8248230f916e3bc65471747c 100644
--- a/chrome/browser/speech/speech_input_extension_api.cc
+++ b/chrome/browser/speech/speech_input_extension_api.cc
@@ -166,15 +166,15 @@ bool StopSpeechInputFunction::RunImpl() {
profile())->Stop(extension_id(), &error_);
}
-void IsRecordingSpeechInputFunction::SetResult(bool result) {
+void IsRecordingSpeechInputFunction::SetIsRecordingResult(bool result) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- result_.reset(Value::CreateBooleanValue(result));
+ SetResult(Value::CreateBooleanValue(result));
SendResponse(true);
}
void IsRecordingSpeechInputFunction::Run() {
SpeechInputExtensionManager::GetForProfile(profile())->IsRecording(
- base::Bind(&IsRecordingSpeechInputFunction::SetResult, this));
+ base::Bind(&IsRecordingSpeechInputFunction::SetIsRecordingResult, this));
}
bool IsRecordingSpeechInputFunction::RunImpl() {

Powered by Google App Engine
This is Rietveld 408576698