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

Issue 92001: Restore closed tabs into new windows when necessary, and track the windows th... (Closed)

Created:
11 years, 8 months ago by Pam (message me for reviews)
Modified:
9 years, 5 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Restore closed tabs into new windows when necessary, and track the windows they came from so they're restored together (into the same new window) when appropriate. Fix safety check on tab index when restoring: make it check the correct browser. Change some ASSERTs to EXPECTs in the unit test for greater coverage. BUG=5278 TEST=Open a window with two tabs, close both (closing the window), then restore both. Make sure both restored tabs are in the same window. Open a window with multiple tabs, close a tab, then close the window using its close box. Restore both and make sure the tab goes back into the window. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14234

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -127 lines) Patch
M chrome/browser/sessions/tab_restore_service.h View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service.cc View 1 2 7 chunks +48 lines, -21 lines 0 comments Download
M chrome/browser/tab_restore_uitest.cc View 1 2 13 chunks +206 lines, -84 lines 0 comments Download
M chrome/test/automation/browser_proxy.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/automation/browser_proxy.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/ui/ui_test.h View 1 2 2 chunks +27 lines, -10 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 4 chunks +14 lines, -8 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Pam (message me for reviews)
11 years, 8 months ago (2009-04-22 01:31:09 UTC) #1
sky
http://codereview.chromium.org/92001/diff/19/1006 File chrome/browser/sessions/tab_restore_service.cc (right): http://codereview.chromium.org/92001/diff/19/1006#newcode161 Line 161: window->tabs[entry_index].browser_id = browser->session_id().id(); Perhaps we should move this ...
11 years, 8 months ago (2009-04-22 14:45:04 UTC) #2
Pam (message me for reviews)
New patch uploaded. http://codereview.chromium.org/92001/diff/19/1006 File chrome/browser/sessions/tab_restore_service.cc (right): http://codereview.chromium.org/92001/diff/19/1006#newcode161 Line 161: window->tabs[entry_index].browser_id = browser->session_id().id(); On 2009/04/22 ...
11 years, 8 months ago (2009-04-22 18:18:21 UTC) #3
sky
11 years, 8 months ago (2009-04-22 18:27:36 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698