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

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

Issue 2451743002: [ObjC ARC] Converts the rest of ios/web to ARC. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « ios/web/web_state/web_state_delegate_bridge.mm ('k') | ios/web/web_state/web_state_observer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a4c76f9069546592b03f999de0ec9a325a0c6a18..db827daca0c44ac6955ddc012a5de99bf0b44ed8 100644
--- a/ios/web/web_state/web_state_impl.mm
+++ b/ios/web/web_state/web_state_impl.mm
@@ -34,6 +34,10 @@
#include "net/http/http_response_headers.h"
#include "services/service_manager/public/cpp/interface_registry.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace web {
/* static */
@@ -141,7 +145,7 @@ CRWWebController* WebStateImpl::GetWebController() {
void WebStateImpl::SetWebController(CRWWebController* web_controller) {
[web_controller_ close];
- web_controller_.reset([web_controller retain]);
+ web_controller_.reset(web_controller);
}
WebStateFacadeDelegate* WebStateImpl::GetFacadeDelegate() const {
« no previous file with comments | « ios/web/web_state/web_state_delegate_bridge.mm ('k') | ios/web/web_state/web_state_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698