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

Issue 1413403004: Invalidate the weak factory in SpeechRecognizer::EventListener::StopOnIOThread(). (Closed)

Created:
5 years, 1 month ago by Anand Mistry (off Chromium)
Modified:
5 years, 1 month ago
Reviewers:
Matt Giuca
CC:
chromium-reviews, tfarina, Matt Giuca, tapted, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invalidate the weak factory in SpeechRecognizer::EventListener::StopOnIOThread(). When an |app_list::SpeechRecognizer| is destroyed, a callback to SpeechRecognizer::EventListener::StopOnIOThread() is posted to the IO thread, and the |SpeechRecognizer| releases it's reference to |EventListener|. |EventListener| may have weak pointers that must be invalidated on the IO thread. However, on |SpeechRecognizer| releasing its reference, the callback may have already run and hence the |EventListener| is deleted upon releasing that reference on the UI thread. This change ensures there are no more weak references to |EventListener| by the time it is destroyed. BUG=547650 Committed: https://crrev.com/228f0a02c58c37e39099daf12d57488c25b328fe Cr-Commit-Position: refs/heads/master@{#356008}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M chrome/browser/ui/app_list/speech_recognizer.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Anand Mistry (off Chromium)
5 years, 1 month ago (2015-10-26 02:50:49 UTC) #2
Matt Giuca
OK I kind of get this but it's a little unclear from the description. Is ...
5 years, 1 month ago (2015-10-26 04:04:53 UTC) #3
Anand Mistry (off Chromium)
Bug filed (it's a test flake).
5 years, 1 month ago (2015-10-26 04:11:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413403004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413403004/1
5 years, 1 month ago (2015-10-26 04:14:43 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 1 month ago (2015-10-26 04:50:41 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-10-26 04:51:31 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/228f0a02c58c37e39099daf12d57488c25b328fe
Cr-Commit-Position: refs/heads/master@{#356008}

Powered by Google App Engine
This is Rietveld 408576698