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

Issue 1134773004: Fix speech crash on render view swap. (Closed)

Created:
5 years, 7 months ago by lazyboy
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix speech crash on render view swap. ChromeSRMDelegate should not be reading the WebContents* back from WebContentsObserver after it has explicitly set to observe nullptr WebContents. This was introduced by my earlier CL: r330213, I never tested the feature from NTP. BUG=489182, 489157 Test=1) From new tab page, click on the mic beside search box, feed it some search query, it should not crash chrome. 2) Similar to step #1, but before the query completes, close the tab, observe no crash. Committed: https://crrev.com/ada65a7b1dfe82b1711ec6a6d29a5fe74c5a71a0 Cr-Commit-Position: refs/heads/master@{#330784}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments from thestig@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc View 1 5 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
lazyboy
Hi tommi@, Can you give me pointer to write a browser_test for this? I'm planning ...
5 years, 7 months ago (2015-05-18 19:46:36 UTC) #2
lazyboy
Delegating to thestig@, tommi@ seems unresponsive, would you be able to take a look? This ...
5 years, 7 months ago (2015-05-20 00:07:37 UTC) #4
Lei Zhang
https://chromiumcodereview.appspot.com/1134773004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (left): https://chromiumcodereview.appspot.com/1134773004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#oldcode182 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:182: DCHECK(iter != registered_web_contents_.end()); Did you blow through this DCHECK()? ...
5 years, 7 months ago (2015-05-20 00:27:01 UTC) #5
lazyboy
Thanks for quick review, uploaded Patch Set #2. https://chromiumcodereview.appspot.com/1134773004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (left): https://chromiumcodereview.appspot.com/1134773004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#oldcode182 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:182: DCHECK(iter ...
5 years, 7 months ago (2015-05-20 00:43:54 UTC) #6
Lei Zhang
https://chromiumcodereview.appspot.com/1134773004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (left): https://chromiumcodereview.appspot.com/1134773004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#oldcode182 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:182: DCHECK(iter != registered_web_contents_.end()); On 2015/05/20 00:43:53, lazyboy wrote: > ...
5 years, 7 months ago (2015-05-20 01:10:21 UTC) #7
lazyboy
https://chromiumcodereview.appspot.com/1134773004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (left): https://chromiumcodereview.appspot.com/1134773004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#oldcode182 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:182: DCHECK(iter != registered_web_contents_.end()); On 2015/05/20 01:10:21, Lei Zhang wrote: ...
5 years, 7 months ago (2015-05-20 01:29:32 UTC) #8
Lei Zhang
Ok, all makes sense, lgtm.
5 years, 7 months ago (2015-05-20 02:00:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134773004/20001
5 years, 7 months ago (2015-05-20 19:40:21 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-20 19:44:39 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/ada65a7b1dfe82b1711ec6a6d29a5fe74c5a71a0 Cr-Commit-Position: refs/heads/master@{#330784}
5 years, 7 months ago (2015-05-20 19:45:25 UTC) #13
tommi (sloooow) - chröme
5 years, 7 months ago (2015-05-21 09:01:47 UTC) #14
Message was sent while issue was closed.
lgtm and sorry for the delay

Powered by Google App Engine
This is Rietveld 408576698