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

Unified Diff: ios/chrome/browser/ui/bookmarks/bookmark_folder_collection_view.mm

Issue 2844253003: Adding close button in SigninPromoView (Closed)
Patch Set: Changing dismiss to close, and moving the button to the cell 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/bookmarks/bookmark_folder_collection_view.mm
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_folder_collection_view.mm b/ios/chrome/browser/ui/bookmarks/bookmark_folder_collection_view.mm
index 8234110a7dddfbe14153bf4970c2107b99e58c6f..40d298aceb879c3a12852a1b869e92ac1d887f6f 100644
--- a/ios/chrome/browser/ui/bookmarks/bookmark_folder_collection_view.mm
+++ b/ios/chrome/browser/ui/bookmarks/bookmark_folder_collection_view.mm
@@ -414,6 +414,10 @@ CGSize PreferredCellSizeForWidth(UICollectionViewCell* cell, CGFloat width) {
signinPromoCell.signinPromoView.sendChromeCommand = YES;
[[_signinPromoViewMediator createConfigurator]
configureSigninPromoView:signinPromoCell.signinPromoView];
+ __weak BookmarkFolderCollectionView* weakSelf = self;
+ signinPromoCell.closeButtonAction = ^() {
+ [weakSelf.delegate bookmarkCollectionViewDismissPromo:self];
+ };
return signinPromoCell;
} else {
BookmarkPromoCell* promoCell = [self.collectionView

Powered by Google App Engine
This is Rietveld 408576698