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

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

Issue 2396553002: [ARC] Converts part of ios/web/ui to ARC.
Patch Set: co Created 4 years, 2 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
« no previous file with comments | « ios/web/web_state/page_viewport_state.mm ('k') | ios/web/web_state/ui/crw_touch_tracking_recognizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_generic_content_view.mm
diff --git a/ios/web/web_state/ui/crw_generic_content_view.mm b/ios/web/web_state/ui/crw_generic_content_view.mm
index 80c27a0aca22e41e9904ae64575c49ba9f852bed..7c8746b5a03d5e8f3adae4e398053bf001ea889b 100644
--- a/ios/web/web_state/ui/crw_generic_content_view.mm
+++ b/ios/web/web_state/ui/crw_generic_content_view.mm
@@ -7,6 +7,10 @@
#include "base/logging.h"
#include "base/mac/scoped_nsobject.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@interface CRWGenericContentView () {
// The size of the view's bounds at the last call to |-layoutSubviews|.
CGSize _lastLayoutSize;
@@ -25,7 +29,7 @@
if (self) {
DCHECK(view);
_lastLayoutSize = CGSizeZero;
- _view.reset([view retain]);
+ _view.reset(view);
_scrollView.reset([[UIScrollView alloc] initWithFrame:CGRectZero]);
[self addSubview:_scrollView];
[_scrollView addSubview:_view];
« no previous file with comments | « ios/web/web_state/page_viewport_state.mm ('k') | ios/web/web_state/ui/crw_touch_tracking_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698