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

Issue 2678883002: Add a ScopedNSAutoreleasePool to TabModelTest.PersistSelectionChange (Closed)

Created:
3 years, 10 months ago by sdefresne
Modified:
3 years, 10 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

Add a ScopedNSAutoreleasePool to TabModelTest.PersistSelectionChange. Refactoring TabModel introduces some autoreleased NSArray* that increase the lifetime of Tab and thus of the registered observers. Introduce a ScopedNSAutoreleasePool to ensure they are cleaned before the ChromeBrowserState is cleaned. BUG=687207 Review-Url: https://codereview.chromium.org/2678883002 Cr-Commit-Position: refs/heads/master@{#448303} Committed: https://chromium.googlesource.com/chromium/src/+/6bb97fbb52d03df492bc510ac8e9014d8c16ffae

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M ios/chrome/browser/tabs/tab_model_unittest.mm View 1 3 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
sdefresne
Please take a look.
3 years, 10 months ago (2017-02-06 17:01:25 UTC) #3
sdefresne
On 2017/02/06 17:01:25, sdefresne wrote: > Please take a look. This should fix flakyness of ...
3 years, 10 months ago (2017-02-06 17:11:53 UTC) #7
rohitrao (ping after 24h)
lgtm Also consider changing the first line of the description to something like: Add a ...
3 years, 10 months ago (2017-02-06 17:31:46 UTC) #8
sdefresne
PTAL https://codereview.chromium.org/2678883002/diff/1/ios/chrome/browser/tabs/tab_model_unittest.mm File ios/chrome/browser/tabs/tab_model_unittest.mm (right): https://codereview.chromium.org/2678883002/diff/1/ios/chrome/browser/tabs/tab_model_unittest.mm#newcode834 ios/chrome/browser/tabs/tab_model_unittest.mm:834: base::mac::ScopedNSAutoreleasePool pool; On 2017/02/06 17:31:46, rohitrao wrote: > ...
3 years, 10 months ago (2017-02-06 17:46:43 UTC) #10
rohitrao (ping after 24h)
lgtm
3 years, 10 months ago (2017-02-06 17:47:50 UTC) #11
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/2678883002/20001
3 years, 10 months ago (2017-02-06 17:51:10 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 18:07:22 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/6bb97fbb52d03df492bc510ac8e9...

Powered by Google App Engine
This is Rietveld 408576698