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

Unified Diff: ios/chrome/browser/ui/history/history_entries_status_item.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/ui/history/history_entries_status_item.mm
diff --git a/ios/chrome/browser/ui/history/history_entries_status_item.mm b/ios/chrome/browser/ui/history/history_entries_status_item.mm
index 14cbb18e45bb04da6e496dc05b6c1089e19ba9f0..281becacd0a6b3351630be101f3c7f3009e036e2 100644
--- a/ios/chrome/browser/ui/history/history_entries_status_item.mm
+++ b/ios/chrome/browser/ui/history/history_entries_status_item.mm
@@ -6,7 +6,7 @@
#include "base/ios/weak_nsobject.h"
#include "base/mac/foundation_util.h"
-#import "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "components/strings/grit/components_strings.h"
#include "ios/chrome/browser/chrome_url_constants.h"
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_footer_item.h"
@@ -26,8 +26,6 @@
@end
@interface HistoryEntriesStatusCell () {
- // Property releaser for HistoryEntriesStatusItem.
- base::mac::ObjCPropertyReleaser _propertyReleaser_HistoryEntriesStatusCell;
// Delegate for the HistoryEntriesStatusCell. Is notified when a link is
// tapped.
base::WeakNSProtocol<id<HistoryEntriesStatusCellDelegate>> _delegate;
@@ -149,13 +147,9 @@
@synthesize labelLinkController = _labelLinkController;
-- (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- _propertyReleaser_HistoryEntriesStatusCell.Init(
- self, [HistoryEntriesStatusCell class]);
- }
- return self;
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
}
- (void)setLinksForSyncURL:(const GURL&)syncURL

Powered by Google App Engine
This is Rietveld 408576698