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

Unified Diff: chrome/browser/tab_contents/navigation_controller.cc

Issue 273022: Fixing a bug with interstitial pages triggered with malware.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/navigation_controller.cc
===================================================================
--- chrome/browser/tab_contents/navigation_controller.cc (revision 28624)
+++ chrome/browser/tab_contents/navigation_controller.cc (working copy)
@@ -661,6 +661,10 @@
if (entry == pending_entry_)
DiscardNonCommittedEntriesInternal();
+ // If a transient entry was removed, the indeces might have changed, get
brettw 2009/10/14 20:47:09 indeces -> indices
+ // entry_index again.
+ entry_index = GetEntryIndexWithPageID(tab_contents_->GetSiteInstance(),
brettw 2009/10/14 20:47:09 How about skipping entry_index and just setting la
+ params.page_id);
last_committed_entry_index_ = entry_index;
}
@@ -977,6 +981,8 @@
if (transient_entry_index_ == -1)
return;
entries_.erase(entries_.begin() + transient_entry_index_);
+ if (last_committed_entry_index_ > transient_entry_index_)
+ last_committed_entry_index_--;
transient_entry_index_ = -1;
}
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698