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

Unified Diff: Source/modules/speech/SpeechRecognition.cpp

Issue 636863002: Make SpeechRecognitionController per frame instead of per page. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 1 month 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: Source/modules/speech/SpeechRecognition.cpp
diff --git a/Source/modules/speech/SpeechRecognition.cpp b/Source/modules/speech/SpeechRecognition.cpp
index 16d59af59a4ab2b0494dc03378537b5f4fdb0121..e641b5619f7612b2e56713d80f203488d89e8ed3 100644
--- a/Source/modules/speech/SpeechRecognition.cpp
+++ b/Source/modules/speech/SpeechRecognition.cpp
@@ -180,10 +180,10 @@ SpeechRecognition::SpeechRecognition(ExecutionContext* context)
{
Document* document = toDocument(executionContext());
- Page* page = document->page();
- ASSERT(page);
+ LocalFrame* frame = document->frame();
+ ASSERT(frame);
- m_controller = SpeechRecognitionController::from(page);
+ m_controller = SpeechRecognitionController::from(*frame);
ASSERT(m_controller);
// FIXME: Need to hook up with Page to get notified when the visibility changes.

Powered by Google App Engine
This is Rietveld 408576698