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

Unified Diff: ios/chrome/browser/payments/payment_request_coordinator.mm

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: weak -> assign Created 3 years, 11 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/payments/payment_request_coordinator.mm
diff --git a/ios/chrome/browser/payments/payment_request_coordinator.mm b/ios/chrome/browser/payments/payment_request_coordinator.mm
index 525b491ffef810dcae403d19afd65a7241ae5db3..e3244388e25c90441b55f3139158df2a5f7e0ea0 100644
--- a/ios/chrome/browser/payments/payment_request_coordinator.mm
+++ b/ios/chrome/browser/payments/payment_request_coordinator.mm
@@ -8,7 +8,7 @@
#include <vector>
#import "base/ios/weak_nsobject.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "base/mac/scoped_nsobject.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/autofill_data_util.h"
@@ -29,8 +29,6 @@
_shippingAddressSelectionCoordinator;
base::scoped_nsobject<PaymentMethodSelectionCoordinator>
_methodSelectionCoordinator;
-
- base::mac::ObjCPropertyReleaser _propertyReleaser_PaymentRequestCoordinator;
}
// Returns the credit cards available from |_personalDataManager| that match
@@ -52,13 +50,16 @@
personalDataManager:
(autofill::PersonalDataManager*)personalDataManager {
if ((self = [super initWithBaseViewController:baseViewController])) {
- _propertyReleaser_PaymentRequestCoordinator.Init(
- self, [PaymentRequestCoordinator class]);
_personalDataManager = personalDataManager;
}
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
- (id<PaymentRequestCoordinatorDelegate>)delegate {
return _delegate.get();
}

Powered by Google App Engine
This is Rietveld 408576698