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

Unified Diff: ios/chrome/browser/ui/find_bar/find_bar_controller_ios.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/find_bar/find_bar_controller_ios.mm
diff --git a/ios/chrome/browser/ui/find_bar/find_bar_controller_ios.mm b/ios/chrome/browser/ui/find_bar/find_bar_controller_ios.mm
index f032bf65af2b22e3c5ecfa784488e9aebf3ac49e..57ea9c1351bba46a16c0a246b186642321152ec2 100644
--- a/ios/chrome/browser/ui/find_bar/find_bar_controller_ios.mm
+++ b/ios/chrome/browser/ui/find_bar/find_bar_controller_ios.mm
@@ -9,7 +9,7 @@
#include "base/ios/ios_util.h"
#include "base/mac/bundle_locations.h"
#include "base/mac/foundation_util.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/strings/grit/components_strings.h"
@@ -44,9 +44,7 @@ const NSTimeInterval kSearchShortDelay = 0.100;
#pragma mark - FindBarControllerIOS
-@interface FindBarControllerIOS ()<UITextFieldDelegate> {
- base::mac::ObjCPropertyReleaser _propertyReleaser_FindInPageController;
-}
+@interface FindBarControllerIOS ()<UITextFieldDelegate>
// Set up iPad UI
- (void)setUpIPad;
@@ -103,13 +101,16 @@ const NSTimeInterval kSearchShortDelay = 0.100;
- (instancetype)initWithIncognito:(BOOL)isIncognito {
self = [super init];
if (self) {
- _propertyReleaser_FindInPageController.Init(self,
- [FindBarControllerIOS class]);
_isIncognito = isIncognito;
}
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
#pragma mark View Setup & Teardown
- (UIView*)newFindBarView {

Powered by Google App Engine
This is Rietveld 408576698