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

Unified Diff: ios/chrome/app/main_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/app/main_controller.mm
diff --git a/ios/chrome/app/main_controller.mm b/ios/chrome/app/main_controller.mm
index 352e9885cc1289bda3d24a22e92db6670e1366a2..0956d7af8cf3fe1f0711437abac111fcd8888caf 100644
--- a/ios/chrome/app/main_controller.mm
+++ b/ios/chrome/app/main_controller.mm
@@ -18,7 +18,7 @@
#import "base/mac/bind_objc_block.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"
#import "base/mac/scoped_nsobject.h"
#include "base/macros.h"
#include "base/path_service.h"
@@ -351,8 +351,6 @@ enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
// appropriate pref changes.
base::scoped_nsobject<MemoryDebuggerManager> _memoryDebuggerManager;
- base::mac::ObjCPropertyReleaser _propertyReleaser_MainController;
-
// Responsible for indexing chrome links (such as bookmarks, most likely...)
// in system Spotlight index.
base::scoped_nsobject<SpotlightManager> _spotlightManager;
@@ -563,7 +561,6 @@ enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
- (instancetype)init {
if ((self = [super init])) {
- _propertyReleaser_MainController.Init(self, [MainController class]);
_startupTasks.reset([[StartupTasks alloc] init]);
}
return self;
@@ -574,6 +571,7 @@ enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
net::HTTPProtocolHandlerDelegate::SetInstance(nullptr);
net::RequestTracker::SetRequestTrackerFactory(nullptr);
[NSObject cancelPreviousPerformRequestsWithTarget:self];
+ base::mac::ReleaseProperties(self);
[super dealloc];
}

Powered by Google App Engine
This is Rietveld 408576698