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

Unified Diff: ios/chrome/browser/ui/history/clear_browsing_bar.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/clear_browsing_bar.mm
diff --git a/ios/chrome/browser/ui/history/clear_browsing_bar.mm b/ios/chrome/browser/ui/history/clear_browsing_bar.mm
index 88d72268012973db77783d63a0553568a64c82a0..a1bb0373c103bbadb408ed1146329e6bfdb9812d 100644
--- a/ios/chrome/browser/ui/history/clear_browsing_bar.mm
+++ b/ios/chrome/browser/ui/history/clear_browsing_bar.mm
@@ -5,7 +5,7 @@
#import "ios/chrome/browser/ui/history/clear_browsing_bar.h"
#include "base/logging.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "components/strings/grit/components_strings.h"
#include "ios/chrome/browser/ui/rtl_geometry.h"
#import "ios/chrome/browser/ui/uikit_ui_util.h"
@@ -22,9 +22,7 @@ CGFloat kHorizontalMargin = 8.0f;
typedef NS_ENUM(BOOL, ButtonPlacement) { Leading, Trailing };
} // namespace
-@interface ClearBrowsingBar () {
- base::mac::ObjCPropertyReleaser propertyReleaser_ClearBrowsingBar_;
-}
+@interface ClearBrowsingBar ()
// Button that displays "Clear Browsing Data...".
@property(nonatomic, strong) UIButton* clearBrowsingDataButton;
@@ -106,11 +104,15 @@ typedef NS_ENUM(BOOL, ButtonPlacement) { Leading, Trailing };
[self setBackgroundColor:[UIColor whiteColor]];
[[self layer] setShadowOpacity:kShadowOpacity];
[self setEditing:NO];
- propertyReleaser_ClearBrowsingBar_.Init(self, [ClearBrowsingBar class]);
}
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
#pragma mark Public Methods
- (void)setEditing:(BOOL)editing {

Powered by Google App Engine
This is Rietveld 408576698