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

Unified Diff: ios/chrome/browser/ui/ntp/google_landing_view_controller.mm

Issue 2970553002: [ios] Remove IDC_CLOSE_TAB
Patch Set: Add comment for chrome_test_util.h" Created 3 years, 5 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
« no previous file with comments | « ios/chrome/browser/ui/ntp/google_landing_view_controller.h ('k') | ios/chrome/test/app/chrome_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/ntp/google_landing_view_controller.mm
diff --git a/ios/chrome/browser/ui/ntp/google_landing_view_controller.mm b/ios/chrome/browser/ui/ntp/google_landing_view_controller.mm
index e5dfdab2965b195d1f5abbb9b508bdf9ab1067fa..fdb6618d6a99e86ad8b6247ca9d25b09a5445341 100644
--- a/ios/chrome/browser/ui/ntp/google_landing_view_controller.mm
+++ b/ios/chrome/browser/ui/ntp/google_landing_view_controller.mm
@@ -11,6 +11,7 @@
#include "base/strings/sys_string_conversions.h"
#include "components/strings/grit/components_strings.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/content_suggestions_collection_utils.h"
@@ -1248,9 +1249,7 @@ const CGFloat kShiftTilesDownAnimationDuration = 0.2;
[[self view] chromeExecuteCommand:command];
} break;
case OverscrollAction::CLOSE_TAB: {
- base::scoped_nsobject<GenericChromeCommand> command(
- [[GenericChromeCommand alloc] initWithTag:IDC_CLOSE_TAB]);
- [[self view] chromeExecuteCommand:command];
+ [self.dispatcher closeCurrentTab];
} break;
case OverscrollAction::REFRESH:
[self reload];
« no previous file with comments | « ios/chrome/browser/ui/ntp/google_landing_view_controller.h ('k') | ios/chrome/test/app/chrome_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698