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

Unified Diff: ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: Yank unrelated changes. Created 3 years, 10 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/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
diff --git a/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm b/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
index d4a463aac78cee4b80ce267107462a38bdf80ff8..7705907b19dd4e430a4dde0eb0e60c2bc29e39d0 100644
--- a/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
+++ b/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
@@ -9,7 +9,7 @@
#include <algorithm>
#include "base/ios/ios_util.h"
#include "base/logging.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "base/mac/scoped_nsobject.h"
#include "base/metrics/histogram_macros.h"
#import "ios/chrome/browser/ui/browser_view_controller.h"
@@ -167,7 +167,6 @@ NSString* const kOverscrollActionsDidEnd = @"OverscrollActionsDidStop";
// The scrollview driving the OverscrollActionsController when not using
// the scrollview from the CRWWebControllerObserver.
base::scoped_nsobject<UIScrollView> _scrollview;
- base::mac::ObjCPropertyReleaser _propertyReleaser_OverscrollActionsController;
}
// The view displayed over the header view holding the actions.
@@ -245,8 +244,6 @@ NSString* const kOverscrollActionsDidEnd = @"OverscrollActionsDidStop";
- (instancetype)initWithScrollView:(UIScrollView*)scrollView {
self = [super init];
if (self) {
- _propertyReleaser_OverscrollActionsController.Init(
- self, [OverscrollActionsController class]);
_overscrollActionView =
[[OverscrollActionsView alloc] initWithFrame:CGRectZero];
_overscrollActionView.delegate = self;
@@ -279,6 +276,7 @@ NSString* const kOverscrollActionsDidEnd = @"OverscrollActionsDidStop";
- (void)dealloc {
self.overscrollActionView.delegate = nil;
[self invalidate];
+ base::mac::ReleaseProperties(self);
[super dealloc];
}

Powered by Google App Engine
This is Rietveld 408576698