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

Issue 2434853002: [ObjC ARC] Converts crw_web_controller to ARC. (Closed)

Created:
4 years, 2 months ago by stkhapugin
Modified:
4 years, 1 month ago
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ObjC ARC] Converts crw_web_controller to ARC. Notable changes: * crw_web_controller.mm used to have a dictionary storing selectors just for keeping the KVO code clean. ARC cannot call a selector from a string like this, because it cannot guarantee correct memory management in this case. So it was replaced with an array of observed key paths to keep some of the code cleanness, while the KVO callback has a huge switch. BUG=624365 TEST=None Committed: https://crrev.com/9b6f44b09855a803914efd9877fddb471a97cbf1 Cr-Commit-Position: refs/heads/master@{#430304}

Patch Set 1 #

Patch Set 2 : Removes weak_nsobjects #

Patch Set 3 : little changes #

Patch Set 4 : Expose delegate #

Total comments: 38

Patch Set 5 : Comments #

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : Comments & rebase #

Patch Set 9 : d #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -130 lines) Patch
M ios/web/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -9 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 6 7 8 39 chunks +94 lines, -119 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 31 (21 generated)
stkhapugin
4 years, 2 months ago (2016-10-19 16:34:37 UTC) #5
sdefresne
lgtm but please wait for eugenebut review too https://codereview.chromium.org/2434853002/diff/60001/ios/web/web_state/ui/crw_web_controller.h File ios/web/web_state/ui/crw_web_controller.h (right): https://codereview.chromium.org/2434853002/diff/60001/ios/web/web_state/ui/crw_web_controller.h#newcode85 ios/web/web_state/ui/crw_web_controller.h:85: @property(weak, ...
4 years, 2 months ago (2016-10-19 18:44:07 UTC) #14
Eugene But (OOO till 7-30)
Thank you for this! https://codereview.chromium.org/2434853002/diff/60001/ios/web/web_state/ui/crw_web_controller.h File ios/web/web_state/ui/crw_web_controller.h (right): https://codereview.chromium.org/2434853002/diff/60001/ios/web/web_state/ui/crw_web_controller.h#newcode85 ios/web/web_state/ui/crw_web_controller.h:85: @property(weak, nonatomic, readonly) UIView* view; ...
4 years, 1 month ago (2016-10-25 02:26:06 UTC) #15
stkhapugin
Thanks for your comments. I've split into two patches, as you asked. PTAL https://codereview.chromium.org/2434853002/diff/60001/ios/web/web_state/ui/crw_web_controller.h File ...
4 years, 1 month ago (2016-10-25 16:16:47 UTC) #17
Eugene But (OOO till 7-30)
lgtm. Please update CL description since some of the statements are not valid after CL ...
4 years, 1 month ago (2016-10-25 20:04:54 UTC) #21
stkhapugin
https://codereview.chromium.org/2434853002/diff/100001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/2434853002/diff/100001/ios/web/web_state/ui/crw_web_controller.mm#newcode481 ios/web/web_state/ui/crw_web_controller.mm:481: @property(strong, nonatomic) id<CRWNativeContent> nativeController; On 2016/10/25 20:04:54, Eugene But ...
4 years, 1 month ago (2016-11-07 16:16:50 UTC) #23
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/2434853002/140001
4 years, 1 month ago (2016-11-07 16:17:18 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-07 17:29:37 UTC) #28
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/9b6f44b09855a803914efd9877fddb471a97cbf1 Cr-Commit-Position: refs/heads/master@{#430304}
4 years, 1 month ago (2016-11-07 17:44:01 UTC) #30
baxley
4 years, 1 month ago (2016-11-08 00:33:10 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2482803003/ by baxley@chromium.org.

The reason for reverting is: This caused multiple Chrome for iOS unit tests to
fail when creating tabs.

It resulted in tests crashing when checking if currently on the web thread..

Powered by Google App Engine
This is Rietveld 408576698