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

Unified Diff: ios/chrome/browser/ui/bookmarks/bookmark_all_collection_view.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/bookmarks/bookmark_all_collection_view.mm
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_all_collection_view.mm b/ios/chrome/browser/ui/bookmarks/bookmark_all_collection_view.mm
index d51506ba8413eba015a15d1b7acf46bf03b718f5..86939795e9f89010a0c6658402691249fd88eab2 100644
--- a/ios/chrome/browser/ui/bookmarks/bookmark_all_collection_view.mm
+++ b/ios/chrome/browser/ui/bookmarks/bookmark_all_collection_view.mm
@@ -8,7 +8,7 @@
#include <vector>
#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/strings/sys_string_conversions.h"
#include "components/bookmarks/browser/bookmark_model.h"
@@ -44,7 +44,6 @@ typedef enum { kNoUpdate = 0, kOneUpdateDone, kUpdateScheduled } UpdateState;
std::vector<std::unique_ptr<NodesSection>> _nodesSectionVector;
// To avoid refreshing the internal model too often.
UpdateState _updateScheduled;
- base::mac::ObjCPropertyReleaser _propertyReleaser_BookmarkAllCollectionView;
}
// Keep a reference to the promo cell to deregister as delegate.
@@ -65,8 +64,6 @@ typedef enum { kNoUpdate = 0, kOneUpdateDone, kUpdateScheduled } UpdateState;
frame:(CGRect)frame {
self = [super initWithBrowserState:browserState frame:frame];
if (self) {
- _propertyReleaser_BookmarkAllCollectionView.Init(
- self, [BookmarkAllCollectionView class]);
self.accessibilityIdentifier = @"bookmark_all_collection_view";
[self updateCollectionView];
}
@@ -75,6 +72,7 @@ typedef enum { kNoUpdate = 0, kOneUpdateDone, kUpdateScheduled } UpdateState;
- (void)dealloc {
_promoCell.delegate = nil;
+ base::mac::ReleaseProperties(self);
[super dealloc];
}

Powered by Google App Engine
This is Rietveld 408576698