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 8926dc17f8e101e9f049efde8c6b2d7e67ec3684..0766cb0ee1c5f8f533ba0f3a0458b5f730303718 100644 |
--- a/ios/chrome/browser/web/cache_egtest.mm |
+++ b/ios/chrome/browser/web/cache_egtest.mm |
@@ -160,9 +160,7 @@ class ScopedBlockPopupsPref { |
// Reloads the web view and waits for the loading to complete. |
// TODO(crbug.com/638674): Evaluate if this can move to shared code |
- (void)reloadPage { |
- GenericChromeCommand* reloadCommand = |
- [[GenericChromeCommand alloc] initWithTag:IDC_RELOAD]; |
- chrome_test_util::RunCommandWithActiveViewController(reloadCommand); |
+ [chrome_test_util::BrowserCommandDispatcherForMainBVC() reload]; |
[ChromeEarlGrey waitForPageToFinishLoading]; |
} |