diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 15:51:45 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 15:51:45 +0000 |
commit | 33986d3ecde79d6a1bdf2b0edd17fc13bc2cc78b (patch) | |
tree | 7beebadf45c8da3a722a550eb4342038ef8bcb08 /chrome/browser/instant | |
parent | bb647d8d997d5ba1d9371630e5871cde3ce2e0fc (diff) | |
download | chromium_src-33986d3ecde79d6a1bdf2b0edd17fc13bc2cc78b.zip chromium_src-33986d3ecde79d6a1bdf2b0edd17fc13bc2cc78b.tar.gz chromium_src-33986d3ecde79d6a1bdf2b0edd17fc13bc2cc78b.tar.bz2 |
Changes instant to not reserve page ids. Turns out this isn't
necessary.
BUG=none
TEST=none
R=brettw@chromium.org
Review URL: http://codereview.chromium.org/6992040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r-- | chrome/browser/instant/instant_loader.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc index ff9ba6b..7018ebc 100644 --- a/chrome/browser/instant/instant_loader.cc +++ b/chrome/browser/instant/instant_loader.cc @@ -1001,13 +1001,6 @@ void InstantLoader::CreatePreviewContents(TabContentsWrapper* tab_contents) { tab_contents->profile(), NULL, MSG_ROUTING_NONE, NULL, NULL); preview_contents_.reset(new TabContentsWrapper(new_contents)); preview_contents_->blocked_content_tab_helper()->SetAllContentsBlocked(true); - // Propagate the max page id. That way if we end up merging the two - // NavigationControllers (which happens if we commit) none of the page ids - // will overlap. - int32 max_page_id = tab_contents->tab_contents()->GetMaxPageID(); - if (max_page_id != -1) - preview_contents_->controller().set_max_restored_page_id(max_page_id + 1); - preview_tab_contents_delegate_.reset(new TabContentsDelegateImpl(this)); new_contents->set_delegate(preview_tab_contents_delegate_.get()); preview_contents_->download_tab_helper()->set_delegate( |