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

Unified Diff: chrome/browser/ui/app_list/start_page_service.cc

Issue 809603003: Plumb preamble log data from the hotword extension into the speech recognizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 6 years 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
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/start_page_service.cc
diff --git a/chrome/browser/ui/app_list/start_page_service.cc b/chrome/browser/ui/app_list/start_page_service.cc
index 393ee21a1cfd789245c31149684d7d888374c2b6..a4942c44ea708a379d48fbe3e1aff662bdce0c39 100644
--- a/chrome/browser/ui/app_list/start_page_service.cc
+++ b/chrome/browser/ui/app_list/start_page_service.cc
@@ -30,6 +30,7 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
+#include "content/public/browser/speech_recognition_session_preamble.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
#include "extensions/browser/extension_system_provider.h"
@@ -221,7 +222,8 @@ void StartPageService::AppListHidden() {
#endif
}
-void StartPageService::ToggleSpeechRecognition() {
+void StartPageService::ToggleSpeechRecognition(
+ const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble) {
DCHECK(contents_);
speech_button_toggled_manually_ = true;
@@ -245,7 +247,7 @@ void StartPageService::ToggleSpeechRecognition() {
profile_locale));
}
- speech_recognizer_->Start();
+ speech_recognizer_->Start(preamble);
return;
}
@@ -255,7 +257,8 @@ void StartPageService::ToggleSpeechRecognition() {
if (!webui_finished_loading_) {
pending_webui_callbacks_.push_back(
base::Bind(&StartPageService::ToggleSpeechRecognition,
- base::Unretained(this)));
+ base::Unretained(this),
+ preamble));
return;
}
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698