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

Unified Diff: chrome/browser/repost_form_warning_browsertest.cc

Issue 2561983002: NavigationController: Reload methods migration (Closed)
Patch Set: merge master Created 4 years 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: chrome/browser/repost_form_warning_browsertest.cc
diff --git a/chrome/browser/repost_form_warning_browsertest.cc b/chrome/browser/repost_form_warning_browsertest.cc
index e3950669d29d6b92fca2cf1e21b5d66d0a061eb6..b6c74682ff73bc58dba1fbca0e353523406db682 100644
--- a/chrome/browser/repost_form_warning_browsertest.cc
+++ b/chrome/browser/repost_form_warning_browsertest.cc
@@ -34,8 +34,8 @@ IN_PROC_BROWSER_TEST_F(RepostFormWarningTest, TestDoubleReload) {
// Try to reload it twice, checking for repost.
content::WebContents* web_contents =
browser()->tab_strip_model()->GetActiveWebContents();
- web_contents->GetController().Reload(true);
- web_contents->GetController().Reload(true);
+ web_contents->GetController().Reload(content::ReloadType::NORMAL, true);
+ web_contents->GetController().Reload(content::ReloadType::NORMAL, true);
// There should only be one dialog open.
WebContentsModalDialogManager* web_contents_modal_dialog_manager =
@@ -65,7 +65,7 @@ IN_PROC_BROWSER_TEST_F(RepostFormWarningTest, TestLoginAfterRepost) {
// Try to reload it, checking for repost.
content::WebContents* web_contents =
browser()->tab_strip_model()->GetActiveWebContents();
- web_contents->GetController().Reload(true);
+ web_contents->GetController().Reload(content::ReloadType::NORMAL, true);
// Navigate to a page that requires authentication, bringing up another
// tab-modal sheet.
@@ -79,7 +79,7 @@ IN_PROC_BROWSER_TEST_F(RepostFormWarningTest, TestLoginAfterRepost) {
observer.Wait();
// Try to reload it again.
- web_contents->GetController().Reload(true);
+ web_contents->GetController().Reload(content::ReloadType::NORMAL, true);
// Navigate away from the page. We can't use ui_test_utils:NavigateToURL
// because that waits for the current page to stop loading first, which won't
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu.cc ('k') | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698