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

Unified Diff: components/sessions/core/tab_restore_service.cc

Issue 2114673002: Fix restore of a tab from a recently-closed browser window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 4 years, 5 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 | « components/sessions/BUILD.gn ('k') | components/sessions/core/tab_restore_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/core/tab_restore_service.cc
diff --git a/components/sessions/core/tab_restore_service.cc b/components/sessions/core/tab_restore_service.cc
index a69dc3d22ecef6c4380d7c1ffcb71f1efa648ad0..c440faf33279c20c658b88abbe03f02e3e9c3895 100644
--- a/components/sessions/core/tab_restore_service.cc
+++ b/components/sessions/core/tab_restore_service.cc
@@ -38,7 +38,7 @@ TabRestoreService::Tab::Tab()
}
TabRestoreService::Tab::Tab(const TabRestoreService::Tab& tab)
- : Entry(TAB),
+ : Entry(tab),
navigations(tab.navigations),
current_navigation_index(tab.current_navigation_index),
browser_id(tab.browser_id),
@@ -55,6 +55,10 @@ TabRestoreService::Tab::~Tab() {
TabRestoreService::Tab& TabRestoreService::Tab::operator=(
const TabRestoreService::Tab& tab) {
+ id = tab.id;
+ type = tab.type;
+ timestamp = tab.timestamp;
+ from_last_session = tab.from_last_session;
navigations = tab.navigations;
current_navigation_index = tab.current_navigation_index;
browser_id = tab.browser_id;
« no previous file with comments | « components/sessions/BUILD.gn ('k') | components/sessions/core/tab_restore_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698