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

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

Issue 863213002: Revert of Make SpeechRecognitionController per frame instead of per page. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 11 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
« 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 89fd26952dc131fe035e4d3f8dc3ca64c65956db..e4876278fa82991a670bc812120f43681137fa3d 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());
- LocalFrame* frame = document->frame();
- ASSERT(frame);
+ Page* page = document->page();
+ ASSERT(page);
- m_controller = SpeechRecognitionController::from(*frame);
+ m_controller = SpeechRecognitionController::from(page);
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