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

Issue 2644703003: Fix memory management of VoiceSearchBarView. (Closed)

Created:
3 years, 11 months ago by kkhorimoto
Modified:
3 years, 11 months ago
CC:
chromium-reviews, marq+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix memory management of VoiceSearchBarView. The VoiceSearchProvider is written in ARC, so the returned value is autoreleased despite the function having "Created" in the name. This CL correctly retains the returned value to prevent over-releasing the view. BUG=679719 Review-Url: https://codereview.chromium.org/2644703003 Cr-Commit-Position: refs/heads/master@{#445769} Committed: https://chromium.googlesource.com/chromium/src/+/d297fb597145bbfc86fb1c243091669f09dc6df5

Patch Set 1 #

Patch Set 2 : Create => Build, removed broken ARC annotation #

Total comments: 1

Patch Set 3 : 3-way-patch #

Patch Set 4 : added TODO #

Total comments: 2

Patch Set 5 : Don't update BVC #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M ios/public/provider/chrome/browser/voice/voice_search_provider.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ios/public/provider/chrome/browser/voice/voice_search_provider.mm View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (6 generated)
kkhorimoto
PTAL. I'm curious if either of you have any suggestions for naming this provider function. ...
3 years, 11 months ago (2017-01-18 22:20:06 UTC) #2
stkhapugin
lgtm > Is there an annotation Yes, but we're not sure it works. We've seen ...
3 years, 11 months ago (2017-01-19 12:20:01 UTC) #3
noyau (Ping after 24h)
On 2017/01/18 22:20:06, kkhorimoto_ wrote: > PTAL. I'm curious if either of you have any ...
3 years, 11 months ago (2017-01-19 12:58:55 UTC) #4
kkhorimoto
Yeah speaking of the annotations, this function actually WAS annotated with the returns retained annotation. ...
3 years, 11 months ago (2017-01-19 20:51:23 UTC) #5
kkhorimoto
Downstream CL with new prefix: https://chromereviews.googleplex.com/562467013/
3 years, 11 months ago (2017-01-19 20:53:30 UTC) #7
rohitrao (ping after 24h)
https://codereview.chromium.org/2644703003/diff/20001/ios/public/provider/chrome/browser/voice/voice_search_provider.h File ios/public/provider/chrome/browser/voice/voice_search_provider.h (right): https://codereview.chromium.org/2644703003/diff/20001/ios/public/provider/chrome/browser/voice/voice_search_provider.h#newcode44 ios/public/provider/chrome/browser/voice/voice_search_provider.h:44: virtual UIView<VoiceSearchBar>* BuildVoiceSearchBar(CGRect frame) const; Could you add a ...
3 years, 11 months ago (2017-01-19 20:56:21 UTC) #8
kkhorimoto
Converted to the first of a 3-way patch.
3 years, 11 months ago (2017-01-19 23:02:20 UTC) #9
rohitrao (ping after 24h)
https://codereview.chromium.org/2644703003/diff/60001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (right): https://codereview.chromium.org/2644703003/diff/60001/ios/chrome/browser/ui/browser_view_controller.mm#newcode2294 ios/chrome/browser/ui/browser_view_controller.mm:2294: ->BuildVoiceSearchBar(frame) retain]); We can't change callers to the new ...
3 years, 11 months ago (2017-01-20 14:00:26 UTC) #10
kkhorimoto
https://codereview.chromium.org/2644703003/diff/60001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (right): https://codereview.chromium.org/2644703003/diff/60001/ios/chrome/browser/ui/browser_view_controller.mm#newcode2294 ios/chrome/browser/ui/browser_view_controller.mm:2294: ->BuildVoiceSearchBar(frame) retain]); On 2017/01/20 14:00:26, rohitrao wrote: > We ...
3 years, 11 months ago (2017-01-24 01:36:18 UTC) #11
kkhorimoto
PTAL, Rohit
3 years, 11 months ago (2017-01-24 06:13:24 UTC) #12
rohitrao (ping after 24h)
lgtm, sorry for all the back-and-forth on this.
3 years, 11 months ago (2017-01-24 14:26:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2644703003/80001
3 years, 11 months ago (2017-01-24 18:41:47 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 18:57:41 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/d297fb597145bbfc86fb1c243091...

Powered by Google App Engine
This is Rietveld 408576698