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/passwords/update_password_infobar_controller.mm

Issue 2831293002: Change target+selector for block in InfoBarView (Closed)
Patch Set: Address comment 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/passwords/update_password_infobar_controller.mm
diff --git a/ios/chrome/browser/passwords/update_password_infobar_controller.mm b/ios/chrome/browser/passwords/update_password_infobar_controller.mm
index e48c6a52697e9558ac9644ec791843b9921fbff6..656b3bb2f88bf4630890b2e793e8359657edceeb 100644
--- a/ios/chrome/browser/passwords/update_password_infobar_controller.mm
+++ b/ios/chrome/browser/passwords/update_password_infobar_controller.mm
@@ -62,13 +62,14 @@ NSUInteger kAccountTag = 10;
}
[view addLabel:base::SysUTF16ToNSString(messageText)
- target:self
- action:@selector(infobarLinkDidPress:)];
+ action:^(NSUInteger tag) {
+ [self infobarLinkDidPress:tag];
+ }];
}
-- (void)infobarLinkDidPress:(NSNumber*)tag {
+- (void)infobarLinkDidPress:(NSUInteger)tag {
[super infobarLinkDidPress:tag];
- if ([tag unsignedIntegerValue] != kAccountTag)
+ if (tag != kAccountTag)
return;
UIViewController* baseViewController =

Powered by Google App Engine
This is Rietveld 408576698