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

Issue 2916473002: [ObjC ARC] Converts ios/web:web to ARC. (Closed)

Created:
3 years, 6 months ago by PL
Modified:
3 years, 6 months ago
CC:
chromium-reviews, ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ObjC ARC] Converts ios/web:web to ARC. Automatically generated ARCMigrate commit Notable issues:None BUG=624363 TEST=None Review-Url: https://codereview.chromium.org/2916473002 Cr-Commit-Position: refs/heads/master@{#480083} Committed: https://chromium.googlesource.com/chromium/src/+/95903ec2a23312d86a8c26cdcf2721ce8b8f5d66

Patch Set 1 #

Patch Set 2 : Fix unit test memory issue. #

Patch Set 3 : Tweaks to unit test memory management #

Total comments: 5

Patch Set 4 : Remove CRWWebController from this CL #

Patch Set 5 : Fix web integration tests #

Patch Set 6 : Removing trivial boilerplate changes for a separate CL #

Patch Set 7 : Fix ios web unit tests #

Total comments: 3

Patch Set 8 : Adoption of NS_VALID_UNTIL_END_OF_SCOPE #

Total comments: 12

Patch Set 9 : Tweaks to autorelease pool #

Total comments: 24

Patch Set 10 : Review feedback and change away from NSAutoreleasePool #

Total comments: 9

Patch Set 11 : Fix failing unit test #

Patch Set 12 : (Rebase) #

Patch Set 13 : Nits #

Patch Set 14 : Fixing silly mistake #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -161 lines) Patch
M ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -15 lines 0 comments Download
M ios/web/public/web_state/ui/crw_content_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/web_state/ui/crw_web_view_content_view.h View 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/ui/crw_web_controller_container_view.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_container_view.mm View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +27 lines, -51 lines 0 comments Download
M ios/web/web_state/ui/crw_web_view_content_view.mm View 1 2 3 4 5 6 7 8 9 5 chunks +12 lines, -17 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_script_message_router.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M ios/web/web_state/ui/crw_wk_script_message_router.mm View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -14 lines 0 comments Download
M ios/web/web_state/ui/web_view_js_utils.mm View 3 chunks +8 lines, -4 lines 0 comments Download
M ios/web/web_state/ui/wk_web_view_configuration_provider.mm View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -6 lines 0 comments Download
M ios/web/web_state/web_state_impl.mm View 2 chunks +5 lines, -1 line 0 comments Download
M ios/web/web_state/web_view_internal_creation_util.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -9 lines 0 comments Download
M ios/web/web_state/wk_web_view_security_util.mm View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -4 lines 0 comments Download
M ios/web/webui/web_ui_mojo_inttest.mm View 1 2 3 4 5 6 7 8 9 2 chunks +43 lines, -32 lines 0 comments Download

Messages

Total messages: 109 (75 generated)
PL
Hello, This is an ARC conversion of ios/web. stkhapugin: For ARC conversion rohitrao: For ownership ...
3 years, 6 months ago (2017-06-01 01:56:21 UTC) #16
PL
+ eugenebut as an owner: I think this is closer to his ownership than rohitrao's. ...
3 years, 6 months ago (2017-06-01 01:59:12 UTC) #18
pkl (ping after 24h if needed)
native app launcher related code will be deleted within the next few weeks. https://codereview.chromium.org/2916473002/diff/40001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm File ...
3 years, 6 months ago (2017-06-01 02:50:53 UTC) #20
Eugene But (OOO till 7-30)
On 2017/06/01 02:50:53, pkl -pls.ping.after.24h. wrote: > native app launcher related code will be deleted ...
3 years, 6 months ago (2017-06-01 03:46:58 UTC) #23
stkhapugin
Thank you for doing this, but could you please break this down into smaller CLs? ...
3 years, 6 months ago (2017-06-01 09:55:29 UTC) #24
PL
On 2017/06/01 09:55:29, stkhapugin wrote: > Thank you for doing this, but could you please ...
3 years, 6 months ago (2017-06-01 15:52:46 UTC) #25
stkhapugin
Thanks for making this smaller! The trybot failure seems related to your change, could you ...
3 years, 6 months ago (2017-06-02 10:12:22 UTC) #30
PL
On 2017/06/02 10:12:22, stkhapugin wrote: > Thanks for making this smaller! > > The trybot ...
3 years, 6 months ago (2017-06-02 17:48:40 UTC) #33
Eugene But (OOO till 7-30)
On 2017/06/02 17:48:40, PL wrote: > On 2017/06/02 10:12:22, stkhapugin wrote: > > Thanks for ...
3 years, 6 months ago (2017-06-02 17:59:22 UTC) #34
PL
On 2017/06/02 17:59:22, Eugene But wrote: > On 2017/06/02 17:48:40, PL wrote: > > On ...
3 years, 6 months ago (2017-06-02 18:00:52 UTC) #35
PL
On 2017/06/02 18:00:52, PL wrote: > On 2017/06/02 17:59:22, Eugene But wrote: > > On ...
3 years, 6 months ago (2017-06-02 18:45:06 UTC) #36
PL
Ok! Trybot is happy, and this should also be a much smaller CL than originally. ...
3 years, 6 months ago (2017-06-02 21:42:12 UTC) #41
PL
https://codereview.chromium.org/2916473002/diff/120001/ios/web/web_state/ui/crw_wk_script_message_router.mm File ios/web/web_state/ui/crw_wk_script_message_router.mm (right): https://codereview.chromium.org/2916473002/diff/120001/ios/web/web_state/ui/crw_wk_script_message_router.mm#newcode109 ios/web/web_state/ui/crw_wk_script_message_router.mm:109: // ARC TODO: Discuss the lifecycle of handler here ...
3 years, 6 months ago (2017-06-02 21:47:46 UTC) #42
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2916473002/diff/140001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm File ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm (right): https://codereview.chromium.org/2916473002/diff/140001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm#newcode136 ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm:136: @autoreleasepool { How about using ScopedNSAutoreleasePool? This will prevent ...
3 years, 6 months ago (2017-06-02 23:18:38 UTC) #45
PL
On 2017/06/02 23:18:38, Eugene But wrote: > https://codereview.chromium.org/2916473002/diff/140001/ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm > File > ios/chrome/browser/native_app_launcher/native_app_navigation_controller_unittest.mm > (right): > ...
3 years, 6 months ago (2017-06-02 23:59:36 UTC) #48
PL
Thanks! Running another dry run as there may be some tests I've missed here. PTAL! ...
3 years, 6 months ago (2017-06-05 23:26:19 UTC) #55
PL
On 2017/06/05 23:26:19, PL wrote: > Thanks! > > Running another dry run as there ...
3 years, 6 months ago (2017-06-06 18:23:53 UTC) #58
PL
On 2017/06/06 18:23:53, PL wrote: > On 2017/06/05 23:26:19, PL wrote: > > Thanks! > ...
3 years, 6 months ago (2017-06-06 19:11:23 UTC) #61
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2916473002/diff/160001/ios/web/public/test/web_test.h File ios/web/public/test/web_test.h (right): https://codereview.chromium.org/2916473002/diff/160001/ios/web/public/test/web_test.h#newcode61 ios/web/public/test/web_test.h:61: id root_pool_; Using |id| makes this header an Objective-C ...
3 years, 6 months ago (2017-06-12 06:12:52 UTC) #64
stkhapugin
This is awesome! I agree with Eugene's comments and left a couple more. Thank you ...
3 years, 6 months ago (2017-06-12 12:36:23 UTC) #65
PL
Many thanks for your guidance! Another CL with a change to the use of NSAutoreleasePool ...
3 years, 6 months ago (2017-06-14 00:31:11 UTC) #66
Eugene But (OOO till 7-30)
lgtm! Thanks for converting this. https://codereview.chromium.org/2916473002/diff/180001/ios/web/web_state/ui/crw_web_controller_container_view.mm File ios/web/web_state/ui/crw_web_controller_container_view.mm (right): https://codereview.chromium.org/2916473002/diff/180001/ios/web/web_state/ui/crw_web_controller_container_view.mm#newcode108 ios/web/web_state/ui/crw_web_controller_container_view.mm:108: @property(weak, nonatomic, readonly) CRWWebViewProxyImpl* ...
3 years, 6 months ago (2017-06-14 01:28:00 UTC) #69
stkhapugin
lgtm https://codereview.chromium.org/2916473002/diff/160001/ios/web/web_state/wk_web_view_security_util.mm File ios/web/web_state/wk_web_view_security_util.mm (right): https://codereview.chromium.org/2916473002/diff/160001/ios/web/web_state/wk_web_view_security_util.mm#newcode57 ios/web/web_state/wk_web_view_security_util.mm:57: SecCertificateRef cert = (__bridge SecCertificateRef)certs[i]; On 2017/06/14 00:31:11, ...
3 years, 6 months ago (2017-06-14 17:01:00 UTC) #72
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2916473002/diff/180001/ios/web/webui/web_ui_mojo_inttest.mm File ios/web/webui/web_ui_mojo_inttest.mm (right): https://codereview.chromium.org/2916473002/diff/180001/ios/web/webui/web_ui_mojo_inttest.mm#newcode178 ios/web/webui/web_ui_mojo_inttest.mm:178: @autoreleasepool { On 2017/06/14 17:00:59, stkhapugin wrote: > On ...
3 years, 6 months ago (2017-06-14 23:10:18 UTC) #73
PL
On 2017/06/14 23:10:18, Eugene But wrote: > https://codereview.chromium.org/2916473002/diff/180001/ios/web/webui/web_ui_mojo_inttest.mm > File ios/web/webui/web_ui_mojo_inttest.mm (right): > > https://codereview.chromium.org/2916473002/diff/180001/ios/web/webui/web_ui_mojo_inttest.mm#newcode178 ...
3 years, 6 months ago (2017-06-15 21:27:00 UTC) #74
PL
Thanks! https://codereview.chromium.org/2916473002/diff/180001/ios/web/web_state/ui/crw_web_controller_container_view.mm File ios/web/web_state/ui/crw_web_controller_container_view.mm (right): https://codereview.chromium.org/2916473002/diff/180001/ios/web/web_state/ui/crw_web_controller_container_view.mm#newcode108 ios/web/web_state/ui/crw_web_controller_container_view.mm:108: @property(weak, nonatomic, readonly) CRWWebViewProxyImpl* contentViewProxy; On 2017/06/14 01:27:59, ...
3 years, 6 months ago (2017-06-15 22:51:32 UTC) #82
PL
On 2017/06/15 22:51:32, PL wrote: > Thanks! > > https://codereview.chromium.org/2916473002/diff/180001/ios/web/web_state/ui/crw_web_controller_container_view.mm > File ios/web/web_state/ui/crw_web_controller_container_view.mm (right): > ...
3 years, 6 months ago (2017-06-15 23:58:42 UTC) #92
stkhapugin
Note that "compile (without patch)" also failed. I've sent it for a second dry run, ...
3 years, 6 months ago (2017-06-16 14:01:33 UTC) #97
PL
On 2017/06/16 14:01:33, stkhapugin wrote: > Note that "compile (without patch)" also failed. I've sent ...
3 years, 6 months ago (2017-06-16 17:06:31 UTC) #100
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/2916473002/260001
3 years, 6 months ago (2017-06-16 17:07:05 UTC) #103
commit-bot: I haz the power
Committed patchset #14 (id:260001) as https://chromium.googlesource.com/chromium/src/+/95903ec2a23312d86a8c26cdcf2721ce8b8f5d66
3 years, 6 months ago (2017-06-16 17:12:41 UTC) #106
gchatz
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/2948673002/ by gchatz@chromium.org. ...
3 years, 6 months ago (2017-06-19 21:11:03 UTC) #107
PL
On 2017/06/19 21:11:03, gchatz wrote: > A revert of this CL (patchset #14 id:260001) has ...
3 years, 6 months ago (2017-06-19 21:13:14 UTC) #108
PL
3 years, 6 months ago (2017-06-19 22:42:06 UTC) #109
Message was sent while issue was closed.
On 2017/06/19 21:13:14, PL wrote:
> On 2017/06/19 21:11:03, gchatz wrote:
> > A revert of this CL (patchset #14 id:260001) has been created in
> > https://codereview.chromium.org/2948673002/ by mailto:gchatz@chromium.org.
> > 
> > The reason for reverting is: Causes SettingsTestCase/testClearCookies to
crash
> > with error:
> > FATAL:wk_web_view_configuration_provider.mm(111)] Check failed:
!weak_router.
> 
> Thanks Greg, this is an autorelease under ARC problem tripping up a check that
> assumes a weak object is not put in the autoreleasepool.
> 
> I will amend the test and then re-commit, thanks!

The fix for the test is here:

https://codereview.chromium.org/2949673002/

I will file a new CL for this issue.

Powered by Google App Engine
This is Rietveld 408576698