From b5bb35f1ddd2e113089e329b024a4fb843d038fb Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Thu, 5 Feb 2009 20:17:07 +0000 Subject: Move resource_message_filter and resource_request_details to the renderer_host. Make the repost form warning portable by abstracting the show function from the view. Rename the Windows repost form warning and move it to browser/views. This also fixes a comment in browser_process.h Review URL: http://codereview.chromium.org/20066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9242 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_contents/navigation_controller.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chrome/browser/tab_contents/navigation_controller.cc') diff --git a/chrome/browser/tab_contents/navigation_controller.cc b/chrome/browser/tab_contents/navigation_controller.cc index 1e567f1..6b94764 100644 --- a/chrome/browser/tab_contents/navigation_controller.cc +++ b/chrome/browser/tab_contents/navigation_controller.cc @@ -11,6 +11,7 @@ #include "chrome/browser/dom_ui/dom_ui_host.h" #include "chrome/browser/sessions/session_types.h" #include "chrome/browser/tab_contents/navigation_entry.h" +#include "chrome/browser/tab_contents/repost_form_warning.h" #include "chrome/browser/tab_contents/site_instance.h" #include "chrome/common/navigation_types.h" #include "chrome/common/notification_service.h" @@ -216,10 +217,10 @@ void NavigationController::Reload(bool check_for_repost) { if (check_for_repost_ && check_for_repost && current_index != -1 && GetEntryAtIndex(current_index)->has_post_data()) { // The user is asking to reload a page with POST data. Prompt to make sure - // they really want to do this. If they do, RepostFormWarningDialog calls us - // back with ReloadDontCheckForRepost. + // they really want to do this. If they do, the dialog will call us back + // with check_for_repost = false. active_contents_->Activate(); - RepostFormWarningDialog::RunRepostFormWarningDialog(this); + RunRepostFormWarningDialog(this); } else { // Base the navigation on where we are now... int current_index = GetCurrentEntryIndex(); -- cgit v1.1