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

Unified Diff: components/handoff/handoff_manager.mm

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm ('k') | ios/chrome/app/main_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/handoff/handoff_manager.mm
diff --git a/components/handoff/handoff_manager.mm b/components/handoff/handoff_manager.mm
index cdcb8f169018fe27e5bf9b36240a32e33c5eaee0..8300210e62d407b5e4cc71ce67f0cf7d6fa91a4a 100644
--- a/components/handoff/handoff_manager.mm
+++ b/components/handoff/handoff_manager.mm
@@ -5,7 +5,7 @@
#include "components/handoff/handoff_manager.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"
#include "net/base/mac/url_conversions.h"
@@ -34,7 +34,6 @@
@end
@implementation HandoffManager {
- base::mac::ObjCPropertyReleaser _propertyReleaser_HandoffManager;
GURL _activeURL;
NSUserActivity* _userActivity;
handoff::Origin _origin;
@@ -53,7 +52,6 @@
- (instancetype)init {
self = [super init];
if (self) {
- _propertyReleaser_HandoffManager.Init(self, [HandoffManager class]);
#if defined(OS_MACOSX) && !defined(OS_IOS)
_origin = handoff::ORIGIN_MAC;
#elif defined(OS_IOS)
@@ -65,6 +63,11 @@
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
- (void)updateActiveURL:(const GURL&)url {
#if defined(OS_MACOSX) && !defined(OS_IOS)
// Handoff is only available on OSX 10.10+.
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm ('k') | ios/chrome/app/main_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698