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

Unified Diff: ios/chrome/browser/ui/no_tabs/no_tabs_controller.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/no_tabs/no_tabs_controller.mm
diff --git a/ios/chrome/browser/ui/no_tabs/no_tabs_controller.mm b/ios/chrome/browser/ui/no_tabs/no_tabs_controller.mm
index 286fdf44db291420c9b97b2017d5f9fcdd6629d4..06e2294931d34d611b7e290cdc5244d37ca2b1c6 100644
--- a/ios/chrome/browser/ui/no_tabs/no_tabs_controller.mm
+++ b/ios/chrome/browser/ui/no_tabs/no_tabs_controller.mm
@@ -5,7 +5,7 @@
#import "ios/chrome/browser/ui/no_tabs/no_tabs_controller.h"
#include "base/logging.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "base/mac/scoped_nsobject.h"
#import "ios/chrome/browser/ui/background_generator.h"
#import "ios/chrome/browser/ui/no_tabs/no_tabs_controller_testing.h"
@@ -44,16 +44,12 @@
// The ending frame for the mode toggle button animation. Equal to CGRectZero
// if the mode toggle button is not being animated.
CGRect toggleImageEndFrame_;
-
- base::mac::ObjCPropertyReleaser propertyReleaser_NoTabsController_;
}
// Designated initializer.
- (id)initWithView:(UIView*)view {
self = [super init];
if (self) {
- propertyReleaser_NoTabsController_.Init(self, [NoTabsController class]);
-
parentView_ = view;
[self installNoTabsToolbarInView:view];
[self installNoTabsBackgroundInView:view];
@@ -61,6 +57,11 @@
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
// Passes the call through to the toolbar controller.
- (void)setHasModeToggleSwitch:(BOOL)hasModeToggle {
[toolbarController_ setHasModeToggleSwitch:hasModeToggle];

Powered by Google App Engine
This is Rietveld 408576698