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

Unified Diff: ios/web/web_state/ui/crw_web_controller_unittest.mm

Issue 2239773002: Annotates functions returning retained objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removes functions that are not in headers AND not in ios code. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/web/web_state/ui/crw_web_controller_unittest.mm
diff --git a/ios/web/web_state/ui/crw_web_controller_unittest.mm b/ios/web/web_state/ui/crw_web_controller_unittest.mm
index 8dc28c16179fa570327b7c5ca737bd73f396ac90..25181a70651146a782272603cf82748cb618d202 100644
--- a/ios/web/web_state/ui/crw_web_controller_unittest.mm
+++ b/ios/web/web_state/ui/crw_web_controller_unittest.mm
@@ -316,7 +316,7 @@ class CRWWebControllerTest : public web::WebTestWithWebController {
}
// Creates WebView mock.
- UIView* CreateMockWebView() {
+ UIView* CreateMockWebView() NS_RETURNS_RETAINED {
id result = [[OCMockObject mockForClass:[WKWebView class]] retain];
if (base::ios::IsRunningOnIOS10OrLater()) {

Powered by Google App Engine
This is Rietveld 408576698