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

Unified Diff: ios/chrome/browser/ui/bookmarks/bookmarks_egtest.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
Index: ios/chrome/browser/ui/bookmarks/bookmarks_egtest.mm
diff --git a/ios/chrome/browser/ui/bookmarks/bookmarks_egtest.mm b/ios/chrome/browser/ui/bookmarks/bookmarks_egtest.mm
index 653bce0c8032c32399fecbe5051d87cef7a471f7..27838b2f4d418bb8aa519589ff106f3b20e19c59 100644
--- a/ios/chrome/browser/ui/bookmarks/bookmarks_egtest.mm
+++ b/ios/chrome/browser/ui/bookmarks/bookmarks_egtest.mm
@@ -214,9 +214,7 @@ id<GREYMatcher> ActionSheet(Action action) {
}
// Close the opened tab.
- GenericChromeCommand* command =
- [[GenericChromeCommand alloc] initWithTag:IDC_CLOSE_TAB];
- chrome_test_util::RunCommandWithActiveViewController(command);
+ [chrome_test_util::BrowserCommandDispatcherForMainBVC() closeCurrentTab];
}
// Tests that tapping a bookmark on the NTP navigates to the proper URL.

Powered by Google App Engine
This is Rietveld 408576698