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

Unified Diff: ios/web/web_state/web_state_impl.mm

Issue 2948673002: Revert of [ObjC ARC] Converts ios/web:web to ARC. (Closed)
Patch Set: Created 3 years, 6 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/web_state_impl.mm
diff --git a/ios/web/web_state/web_state_impl.mm b/ios/web/web_state/web_state_impl.mm
index 7808f7502e6668ff4ab93ee8c2cc04b3616e1f86..de5e4b97b79629f782af4f2a69367a7974b32070 100644
--- a/ios/web/web_state/web_state_impl.mm
+++ b/ios/web/web_state/web_state_impl.mm
@@ -38,10 +38,6 @@
#include "ios/web/webui/web_ui_ios_impl.h"
#include "net/http/http_response_headers.h"
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
namespace web {
/* static */
@@ -166,7 +162,7 @@
void WebStateImpl::SetWebController(CRWWebController* web_controller) {
[web_controller_ close];
- web_controller_.reset(web_controller);
+ web_controller_.reset([web_controller retain]);
}
void WebStateImpl::OnTitleChanged() {
« no previous file with comments | « ios/web/web_state/ui/wk_web_view_configuration_provider.mm ('k') | ios/web/web_state/web_view_internal_creation_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698