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

Unified Diff: ios/chrome/browser/ui/util/label_link_controller.h

Issue 2828743002: LabelObserver is no longer retained by the label (Closed)
Patch Set: Address comments Created 3 years, 8 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/util/label_link_controller.h
diff --git a/ios/chrome/browser/ui/util/label_link_controller.h b/ios/chrome/browser/ui/util/label_link_controller.h
index 35e8928017d3f85eb8cc843f42d1673c8711764a..2fab7535283c01bbdad3efd6b7834faa279b7912 100644
--- a/ios/chrome/browser/ui/util/label_link_controller.h
+++ b/ios/chrome/browser/ui/util/label_link_controller.h
@@ -45,8 +45,8 @@ class GURL;
// attributed text accordingly.
@property(nonatomic, retain) UIFont* linkFont;
-// Creates a new controller for |label|, whose lifetime is expected to exceed
-// that of the receiver. |action| is the block called for any tapped link.
+// Creates a new controller for |label|, keeping a strong reference. |action| is
+// the block called for any tapped link.
- (instancetype)initWithLabel:(UILabel*)label
action:(ProceduralBlockWithURL)action;
« no previous file with comments | « ios/chrome/browser/ui/util/CRUILabel+AttributeUtils_unittest.mm ('k') | ios/chrome/browser/ui/util/label_link_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698