Index: ios/chrome/test/earl_grey/chrome_earl_grey.mm |
diff --git a/ios/chrome/test/earl_grey/chrome_earl_grey.mm b/ios/chrome/test/earl_grey/chrome_earl_grey.mm |
index 71b4eaf5c1e2de843d3df80cb44b81f65550398c..8361a9ec5c4552b7cfe660743dd43e660c60b03b 100644 |
--- a/ios/chrome/test/earl_grey/chrome_earl_grey.mm |
+++ b/ios/chrome/test/earl_grey/chrome_earl_grey.mm |
@@ -115,9 +115,7 @@ id ExecuteJavaScript(NSString* javascript, |
} |
+ (void)reload { |
- base::scoped_nsobject<GenericChromeCommand> reloadCommand( |
- [[GenericChromeCommand alloc] initWithTag:IDC_RELOAD]); |
- chrome_test_util::RunCommandWithActiveViewController(reloadCommand); |
+ [chrome_test_util::BrowserCommandDispatcherForMainBVC() reload]; |
[ChromeEarlGrey waitForPageToFinishLoading]; |
} |