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

Unified Diff: ios/chrome/browser/web/cache_egtest.mm

Issue 2965943002: [ios] Remove IDC_BACK and IDC_FORWARD
Patch Set: Rebase, self review. 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/web/cache_egtest.mm
diff --git a/ios/chrome/browser/web/cache_egtest.mm b/ios/chrome/browser/web/cache_egtest.mm
index 69e1eaa93e96c9cdc20cd84756024b53ce2940ef..8926dc17f8e101e9f049efde8c6b2d7e67ec3684 100644
--- a/ios/chrome/browser/web/cache_egtest.mm
+++ b/ios/chrome/browser/web/cache_egtest.mm
@@ -170,9 +170,7 @@ class ScopedBlockPopupsPref {
// Navigates back to the previous webpage.
// TODO(crbug.com/638674): Evaluate if this can move to shared code.
- (void)goBack {
- GenericChromeCommand* backCommand =
- [[GenericChromeCommand alloc] initWithTag:IDC_BACK];
- chrome_test_util::RunCommandWithActiveViewController(backCommand);
+ [chrome_test_util::BrowserCommandDispatcherForMainBVC() goBack];
[ChromeEarlGrey waitForPageToFinishLoading];
}
« no previous file with comments | « ios/chrome/browser/ui/toolbar/web_toolbar_controller_unittest.mm ('k') | ios/chrome/browser/web/visible_url_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698