Chromium Code Reviews| Index: ios/clean/chrome/browser/ui/context_menu/context_menu_view_controller.mm |
| diff --git a/ios/clean/chrome/browser/ui/context_menu/context_menu_view_controller.mm b/ios/clean/chrome/browser/ui/context_menu/context_menu_view_controller.mm |
| index d1d120a79866e35e1cdf9bcc43c2e2170db9c7f7..c0f282e11961bd320d93c3a32e8e781c9d004b11 100644 |
| --- a/ios/clean/chrome/browser/ui/context_menu/context_menu_view_controller.mm |
| +++ b/ios/clean/chrome/browser/ui/context_menu/context_menu_view_controller.mm |
| @@ -20,11 +20,12 @@ void DispatchContextMenuCommands(const std::vector<SEL>& commands, |
| ContextMenuContext* context) { |
| DCHECK(dispatcher); |
| DCHECK(context); |
| +#pragma clang diagnostic push |
|
marq (ping after 24h)
2017/06/02 08:28:35
Please add a comment explaining why this is needed
kkhorimoto
2017/06/02 21:17:35
Done.
|
| +#pragma clang diagnostic ignored "-Warc-performSelector-leaks" |
| for (SEL command : commands) { |
| - IMP command_imp = [dispatcher methodForSelector:command]; |
| - DCHECK(command_imp); |
| - command_imp(dispatcher, command, context); |
| + [dispatcher performSelector:command withObject:context]; |
| } |
| +#pragma clang diagnostic pop |
| } |
| } |