Index: ios/web/web_state/web_view_internal_creation_util.mm |
diff --git a/ios/web/web_state/web_view_internal_creation_util.mm b/ios/web/web_state/web_view_internal_creation_util.mm |
index 4a96aaeb365a154d08b50f7ddc4e8c8ea3ad8938..c44256ff281797e888ba0edc01d492127112c2bb 100644 |
--- a/ios/web/web_state/web_view_internal_creation_util.mm |
+++ b/ios/web/web_state/web_view_internal_creation_util.mm |
@@ -32,7 +32,7 @@ void VerifyWKWebViewCreationPreConditions( |
WKWebView* CreateWKWebView(CGRect frame, |
WKWebViewConfiguration* configuration, |
BrowserState* browser_state, |
- BOOL use_desktop_user_agent) { |
+ BOOL use_desktop_user_agent) NS_RETURNS_RETAINED { |
VerifyWKWebViewCreationPreConditions(browser_state, configuration); |
GetWebClient()->PreWebViewCreation(); |
@@ -58,7 +58,7 @@ WKWebView* CreateWKWebView(CGRect frame, |
WKWebView* CreateWKWebView(CGRect frame, |
WKWebViewConfiguration* configuration, |
- BrowserState* browser_state) { |
+ BrowserState* browser_state) NS_RETURNS_RETAINED { |
BOOL use_desktop_user_agent = NO; |
return CreateWKWebView(frame, configuration, browser_state, |
use_desktop_user_agent); |