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

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

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: Rebase Created 3 years, 7 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 b1049d4f0bc8f247c8fb29fb212aaf18c8a98311..5d26414f155c8dfdbcc390ccfe95debeb5a4bf32 100644
--- a/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
+++ b/ios/chrome/browser/ui/overscroll_actions/overscroll_actions_controller.mm
@@ -8,7 +8,7 @@
#include <algorithm>
#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"
@@ -168,7 +168,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.
@@ -246,8 +245,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;
@@ -280,6 +277,7 @@ NSString* const kOverscrollActionsDidEnd = @"OverscrollActionsDidStop";
- (void)dealloc {
self.overscrollActionView.delegate = nil;
[self invalidate];
+ base::mac::ReleaseProperties(self);
[super dealloc];
}
« no previous file with comments | « ios/chrome/browser/ui/ntp/new_tab_page_view.mm ('k') | ios/chrome/browser/ui/overscroll_actions/overscroll_actions_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698