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

Unified Diff: base/ios/weak_nsobject.mm

Issue 2943263003: Make WeakContainer safe when weak_nsobject.h is included from ARC code. (Closed)
Patch Set: Created 3 years, 6 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 | « base/ios/weak_nsobject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/ios/weak_nsobject.mm
diff --git a/base/ios/weak_nsobject.mm b/base/ios/weak_nsobject.mm
index 36f9d3ea7cdd700da53d77a34245c3bad68a86c1..c017b1d18771ec8142c90082552c7b1352b2f2e8 100644
--- a/base/ios/weak_nsobject.mm
+++ b/base/ios/weak_nsobject.mm
@@ -12,6 +12,14 @@ namespace {
char sentinelObserverKey_;
}
+namespace base {
+
+WeakContainer::WeakContainer(id object) : object_(object) {}
+
+WeakContainer::~WeakContainer() {}
+
+} // namespace base
+
@interface CRBWeakNSProtocolSentinel ()
// Container to notify on dealloc.
@property(readonly, assign) scoped_refptr<base::WeakContainer> container;
« no previous file with comments | « base/ios/weak_nsobject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698