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

Issue 2239773002: Annotates functions returning retained objects. (Closed)

Created:
4 years, 4 months ago by stkhapugin
Modified:
4 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, sadrul, rsesek+watch_chromium.org, sdefresne+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Annotates functions returning retained objects. Annotates all C functions and C++ methods returning retained Cocoa objects with NS_RETURNS_RETAINED annotation. This annotation is no-op without ARC, and with ARC it ensures correct memory management. More about this annotation: http://clang-analyzer.llvm.org/annotations.html#attr_ns_returns_retained More information about the process behind this cl on the bug. BUG=636375 Committed: https://crrev.com/1f03171454f9041019b56399a5b6752e559b5429 Cr-Commit-Position: refs/heads/master@{#413113}

Patch Set 1 #

Patch Set 2 : Removes functions that are not in headers AND not in ios code. #

Total comments: 7

Patch Set 3 : comments #

Messages

Total messages: 27 (13 generated)
stkhapugin
PTAL
4 years, 4 months ago (2016-08-16 16:28:11 UTC) #7
bzanotti
On 2016/08/16 16:28:11, stkhapugin wrote: > PTAL LGTM for components/signin/ios and ios/chrome/browser/signin code.
4 years, 4 months ago (2016-08-16 16:34:17 UTC) #8
Eugene But (OOO till 7-30)
Please format CL description to have summary line and limit the width to 72 characters. ...
4 years, 4 months ago (2016-08-16 16:45:48 UTC) #9
stkhapugin
https://codereview.chromium.org/2239773002/diff/20001/ios/public/provider/chrome/browser/chrome_browser_provider.h File ios/public/provider/chrome/browser/chrome_browser_provider.h (right): https://codereview.chromium.org/2239773002/diff/20001/ios/public/provider/chrome/browser/chrome_browser_provider.h#newcode80 ios/public/provider/chrome/browser/chrome_browser_provider.h:80: InfoBarViewDelegate* delegate) NS_RETURNS_RETAINED; On 2016/08/16 16:45:48, Eugene But wrote: ...
4 years, 4 months ago (2016-08-16 16:51:49 UTC) #10
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2239773002/diff/20001/ios/web/net/clients/crw_js_injection_network_client_unittest.mm File ios/web/net/clients/crw_js_injection_network_client_unittest.mm (right): https://codereview.chromium.org/2239773002/diff/20001/ios/web/net/clients/crw_js_injection_network_client_unittest.mm#newcode134 ios/web/net/clients/crw_js_injection_network_client_unittest.mm:134: BOOL include_content_length) NS_RETURNS_RETAINED { On 2016/08/16 16:51:49, stkhapugin wrote: ...
4 years, 4 months ago (2016-08-16 17:02:31 UTC) #11
stkhapugin
Thanks, PTAL. Going forward, I think all these functions should be refactored to return autoreleased ...
4 years, 4 months ago (2016-08-18 12:54:20 UTC) #14
rohitrao (ping after 24h)
If the annotation is not necessary in the implementation files, I agree that we should ...
4 years, 4 months ago (2016-08-18 13:01:35 UTC) #15
Eugene But (OOO till 7-30)
lgtm please update CL description to have one line summary and limit width to 72 ...
4 years, 4 months ago (2016-08-18 14:17:25 UTC) #16
stkhapugin
Rohit: yes, I just double-checked. The annotation in the header is sufficient.
4 years, 4 months ago (2016-08-18 15:36:01 UTC) #17
stkhapugin
Eugene: I updated the description to wrap at 72 characters and copied the title. Thanks ...
4 years, 4 months ago (2016-08-18 15:38:50 UTC) #19
rohitrao (ping after 24h)
lgtm
4 years, 4 months ago (2016-08-19 11:03:07 UTC) #20
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/2239773002/40001
4 years, 4 months ago (2016-08-19 11:33:00 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-19 12:08:43 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 12:12:21 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1f03171454f9041019b56399a5b6752e559b5429
Cr-Commit-Position: refs/heads/master@{#413113}

Powered by Google App Engine
This is Rietveld 408576698