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

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

Issue 6155003: Changes instant so that the newly created tab has a new id. Doing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
Index: chrome/browser/tab_contents/navigation_controller.cc
diff --git a/chrome/browser/tab_contents/navigation_controller.cc b/chrome/browser/tab_contents/navigation_controller.cc
index 9439f2118e9c73ddf82aadf22534a268c197d0a8..f294535e7942f5cd8713c7941932ddc3726ee9b5 100644
--- a/chrome/browser/tab_contents/navigation_controller.cc
+++ b/chrome/browser/tab_contents/navigation_controller.cc
@@ -975,14 +975,6 @@ void NavigationController::CopyStateFromAndPrune(NavigationController* source) {
if (last_committed_entry_index_ != -1)
last_committed_entry_index_--;
}
-
- // Take over the session id from source.
- session_id_ = source->session_id_;
-
- // Reset source's session id as we're taking it over. We give it a new id in
- // case source is added later on, which can happen with instant enabled if the
- // tab has a before unload handler.
- source->session_id_ = SessionID();
}
void NavigationController::PruneAllButActive() {
« no previous file with comments | « chrome/browser/tab_contents/navigation_controller.h ('k') | chrome/browser/tab_contents/navigation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698