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

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: first of many-ways CL 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
« no previous file with comments | « no previous file | Source/modules/speech/SpeechRecognitionController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognition.cpp
diff --git a/Source/modules/speech/SpeechRecognition.cpp b/Source/modules/speech/SpeechRecognition.cpp
index 8c75608abf642428172fa0006362efa1359f3965..a9b3dc1946e97e2a693c45eda7ea98e40b40cf1a 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.
« no previous file with comments | « no previous file | Source/modules/speech/SpeechRecognitionController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698