summaryrefslogtreecommitdiffstats
path: root/chrome/browser/navigation_controller.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-30 16:17:04 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-30 16:17:04 +0000
commitf1c7411610f2f849f74eb8d911665e607657a028 (patch)
tree36ec27c156cf13364d894cda85b0bd2d480577ec /chrome/browser/navigation_controller.cc
parent4a2a0a627b45ecd5541856f7c00f4bc9ada8e766 (diff)
downloadchromium_src-f1c7411610f2f849f74eb8d911665e607657a028.zip
chromium_src-f1c7411610f2f849f74eb8d911665e607657a028.tar.gz
chromium_src-f1c7411610f2f849f74eb8d911665e607657a028.tar.bz2
Makes form resubmission dialog work again. This was a regression
introduced during NavigationController refactoring. BUG=2616 TEST=see bug Review URL: http://codereview.chromium.org/8865 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/navigation_controller.cc')
-rw-r--r--chrome/browser/navigation_controller.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/navigation_controller.cc b/chrome/browser/navigation_controller.cc
index ca0aac8..77d5269 100644
--- a/chrome/browser/navigation_controller.cc
+++ b/chrome/browser/navigation_controller.cc
@@ -223,14 +223,14 @@ TabContents* NavigationController::GetTabContents(TabContentsType t) {
return tab_contents_map_[t];
}
-void NavigationController::Reload() {
+void NavigationController::Reload(bool check_for_repost) {
// Reloading a transient entry does nothing.
if (transient_entry_index_ != -1)
return;
DiscardNonCommittedEntriesInternal();
int current_index = GetCurrentEntryIndex();
- if (check_for_repost_ && current_index != -1 &&
+ if (check_for_repost_ && check_for_repost && current_index != -1 &&
GetEntryAtIndex(current_index)->has_post_data() &&
active_contents_->AsWebContents() &&
!active_contents_->AsWebContents()->showing_repost_interstitial()) {
@@ -387,10 +387,6 @@ void NavigationController::GoToOffset(int offset) {
GoToIndex(index);
}
-void NavigationController::ReloadDontCheckForRepost() {
- Reload();
-}
-
void NavigationController::RemoveEntryAtIndex(int index,
const GURL& default_url) {
int size = static_cast<int>(entries_.size());