diff options
Diffstat (limited to 'chrome/browser/tab_contents/navigation_controller.cc')
-rw-r--r-- | chrome/browser/tab_contents/navigation_controller.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/browser/tab_contents/navigation_controller.cc b/chrome/browser/tab_contents/navigation_controller.cc index 3704169..7f5fa99 100644 --- a/chrome/browser/tab_contents/navigation_controller.cc +++ b/chrome/browser/tab_contents/navigation_controller.cc @@ -16,8 +16,8 @@ #include "chrome/browser/renderer_host/site_instance.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/tab_contents.h" +#include "chrome/browser/tab_contents/tab_contents_delegate.h" #include "chrome/common/navigation_types.h" #include "chrome/common/notification_service.h" #include "chrome/common/pref_names.h" @@ -29,11 +29,6 @@ #include "net/base/net_util.h" #include "webkit/glue/webkit_glue.h" -#if defined(OS_WIN) -#include "chrome/browser/tab_contents/repost_form_warning.h" -#include "chrome/browser/tab_contents/tab_contents_delegate.h" -#endif - namespace { // Invoked when entries have been pruned, or removed. For example, if the @@ -173,7 +168,7 @@ void NavigationController::Reload(bool check_for_repost) { // they really want to do this. If they do, the dialog will call us back // with check_for_repost = false. tab_contents_->Activate(); - RunRepostFormWarningDialog(this); + tab_contents_->delegate()->ShowRepostFormWarningDialog(tab_contents_); } else { // Base the navigation on where we are now... int current_index = GetCurrentEntryIndex(); |