Index: ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm |
diff --git a/ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm b/ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm |
index 2d3ee362e0773aee696c5593a0f4f4da7a22acfe..21fbd2369e873920a0e44cf16062f77174e4172c 100644 |
--- a/ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm |
+++ b/ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm |
@@ -25,6 +25,7 @@ |
#include "ios/chrome/browser/reading_list/reading_list_model_factory.h" |
#import "ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h" |
#import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h" |
+#import "ios/chrome/browser/ui/commands/browser_commands.h" |
#import "ios/chrome/browser/ui/commands/generic_chrome_command.h" |
#include "ios/chrome/browser/ui/commands/ios_command_ids.h" |
#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item.h" |
@@ -417,9 +418,7 @@ |
[self.suggestionsViewController chromeExecuteCommand:command]; |
} break; |
case OverscrollAction::CLOSE_TAB: { |
- base::scoped_nsobject<GenericChromeCommand> command( |
- [[GenericChromeCommand alloc] initWithTag:IDC_CLOSE_TAB]); |
- [self.suggestionsViewController chromeExecuteCommand:command]; |
+ [_dispatcher closeCurrentTab]; |
} break; |
case OverscrollAction::REFRESH: |
[self reload]; |