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

Issue 2684023003: [ObjC ARC] Converts ios/chrome/test/earl_grey:test_support to ARC. (Closed)

Created:
3 years, 10 months ago by lody
Modified:
3 years, 10 months ago
Reviewers:
stkhapugin, sdefresne
CC:
chromium-reviews, aboxhall+watch_chromium.org, pkl (ping after 24h if needed), nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, noyau+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ObjC ARC] Converts ios/chrome/test/earl_grey:test_support to ARC. Automatically generated ARCMigrate commit Notable issues: Added __unsafe_unretained annotation to ExecuteJavascript function in order to handle not-yet-ARC files. BUG=624363 TEST=None Review-Url: https://codereview.chromium.org/2684023003 Cr-Commit-Position: refs/heads/master@{#449278} Committed: https://chromium.googlesource.com/chromium/src/+/ae94774be25333de017df83c67e674b6ac3dbe4b

Patch Set 1 #

Patch Set 2 : Add __unsafe_unretained #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -20 lines) Patch
M ios/chrome/test/earl_grey/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/test/earl_grey/accessibility_util.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_actions.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_assertions.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_earl_grey.h View 1 1 chunk +4 lines, -1 line 3 comments Download
M ios/chrome/test/earl_grey/chrome_earl_grey.mm View 1 2 chunks +11 lines, -5 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_earl_grey_ui.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_matchers.mm View 5 chunks +11 lines, -10 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_test_case.mm View 5 chunks +8 lines, -4 lines 0 comments Download
M ios/chrome/test/earl_grey/chrome_util.mm View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
lody
Please review. This is where I made that __unsafe_unretained changed as suggested.
3 years, 10 months ago (2017-02-09 13:01:24 UTC) #11
sdefresne
lgtm https://codereview.chromium.org/2684023003/diff/20001/ios/chrome/test/earl_grey/chrome_earl_grey.h File ios/chrome/test/earl_grey/chrome_earl_grey.h (right): https://codereview.chromium.org/2684023003/diff/20001/ios/chrome/test/earl_grey/chrome_earl_grey.h#newcode22 ios/chrome/test/earl_grey/chrome_earl_grey.h:22: id ExecuteJavaScript(NSString* javascript, I think we'll need to ...
3 years, 10 months ago (2017-02-09 13:12:18 UTC) #12
lody
https://codereview.chromium.org/2684023003/diff/20001/ios/chrome/test/earl_grey/chrome_earl_grey.h File ios/chrome/test/earl_grey/chrome_earl_grey.h (right): https://codereview.chromium.org/2684023003/diff/20001/ios/chrome/test/earl_grey/chrome_earl_grey.h#newcode22 ios/chrome/test/earl_grey/chrome_earl_grey.h:22: id ExecuteJavaScript(NSString* javascript, On 2017/02/09 13:12:17, sdefresne wrote: > ...
3 years, 10 months ago (2017-02-09 13:25:45 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/2684023003/20001
3 years, 10 months ago (2017-02-09 13:26:05 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/ae94774be25333de017df83c67e674b6ac3dbe4b
3 years, 10 months ago (2017-02-09 13:30:28 UTC) #18
sdefresne
3 years, 10 months ago (2017-02-09 13:49:23 UTC) #19
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/2684023003/diff/20001/ios/chrome/test/earl_gr...
File ios/chrome/test/earl_grey/chrome_earl_grey.h (right):

https://codereview.chromium.org/2684023003/diff/20001/ios/chrome/test/earl_gr...
ios/chrome/test/earl_grey/chrome_earl_grey.h:22: id ExecuteJavaScript(NSString*
javascript,
On 2017/02/09 13:25:44, lody wrote:
> On 2017/02/09 13:12:17, sdefresne wrote:
> > I think we'll need to keep the __unsafe_unretained even when all callers are
> > converted to ARC. I'm not sure, but I think there is no automatic retain
> > semantic for pointer to pointer in Objective-C and you always need an
explicit
> > annotation with ARC in that case (it may be changed to __autoreleasing then
> > though).
> 
> It actually seems (
> https://clang.llvm.org/docs/AutomaticReferenceCounting.html#template-arguments
)
> that __autoreleasing is the default in this case, so should be removeable.

Thank you for the pointer (though I think you meant to link to
https://clang.llvm.org/docs/AutomaticReferenceCounting.html#indirect-parameters).
Good to know.

Powered by Google App Engine
This is Rietveld 408576698