diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-25 18:24:45 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-25 18:24:45 +0000 |
commit | ad002771a61333fdfc56f27a1285f8ef90abf069 (patch) | |
tree | b53d5da47840427d0a08cf9958ee26e46df325a8 /chrome/browser/navigation_controller.cc | |
parent | 38950757d99270ef181b7943ae40dba60d9613b3 (diff) | |
download | chromium_src-ad002771a61333fdfc56f27a1285f8ef90abf069.zip chromium_src-ad002771a61333fdfc56f27a1285f8ef90abf069.tar.gz chromium_src-ad002771a61333fdfc56f27a1285f8ef90abf069.tar.bz2 |
Add some new tests for NavigationController for navigations that come in when various navigations are pending. This doesn't actually change any behavior.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1314 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/navigation_controller.cc')
-rw-r--r-- | chrome/browser/navigation_controller.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/navigation_controller.cc b/chrome/browser/navigation_controller.cc index e45aa4c..93ddc9b 100644 --- a/chrome/browser/navigation_controller.cc +++ b/chrome/browser/navigation_controller.cc @@ -504,6 +504,7 @@ void NavigationController::DidNavigateToEntry(NavigationEntry* entry) { // seen before, then consider it a new navigation. Note that if the entry // has a SiteInstance, it should be the same as the SiteInstance of the // active WebContents, because we have just navigated to it. + DCHECK(entry->GetPageID() >= 0) << "Page ID must be set before calling us."; if (entry->GetPageID() > GetMaxPageID()) { InsertEntry(entry); NotifyNavigationEntryCommitted(); |