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

Issue 1371002: Fixes bug where triggering session restore while the browser was... (Closed)

Created:
10 years, 9 months ago by sky
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Fixes bug where triggering session restore while the browser was already running would end up creating an extra tab. BUG=11594 TEST=open chrome with a single tabbed browser, turn on session restore, navigate to a page with a popup, close the tabbed browser, create a new window ala control-n (or double click on the desktop), and make the restored window doesn't end upw Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42766

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -68 lines) Patch
M chrome/browser/browser.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/browser_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_init.h View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/browser_init.cc View 1 2 4 chunks +32 lines, -12 lines 1 comment Download
M chrome/browser/sessions/session_restore.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 5 chunks +11 lines, -1 line 0 comments Download
A chrome/browser/sessions/session_restore_browsertest.cc View 1 chunk +49 lines, -0 lines 2 comments Download
M chrome/browser/sessions/session_service.h View 1 2 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/sessions/session_service.cc View 1 2 3 chunks +33 lines, -21 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/ui_test_utils.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/ui_test_utils.cc View 1 3 chunks +38 lines, -29 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sky
10 years, 9 months ago (2010-03-25 22:42:49 UTC) #1
brettw
http://codereview.chromium.org/1371002/diff/11001/12008 File chrome/browser/browser_init.cc (right): http://codereview.chromium.org/1371002/diff/11001/12008#newcode509 chrome/browser/browser_init.cc:509: if ((process_startup && !OpenStartupURLs(urls_to_open)) || My brain is not ...
10 years, 9 months ago (2010-03-25 23:03:37 UTC) #2
sky
http://codereview.chromium.org/1371002/diff/11001/12008 File chrome/browser/browser_init.cc (right): http://codereview.chromium.org/1371002/diff/11001/12008#newcode509 chrome/browser/browser_init.cc:509: if ((process_startup && !OpenStartupURLs(urls_to_open)) || On 2010/03/25 23:03:37, brettw ...
10 years, 9 months ago (2010-03-25 23:45:04 UTC) #3
brettw
This is a million times better, LGTM http://codereview.chromium.org/1371002/diff/19001/20008 File chrome/browser/browser_init.cc (right): http://codereview.chromium.org/1371002/diff/19001/20008#newcode634 chrome/browser/browser_init.cc:634: // at ...
10 years, 9 months ago (2010-03-26 00:33:32 UTC) #4
Paweł Hajdan Jr.
10 years, 9 months ago (2010-03-26 08:03:20 UTC) #5
Drive-by with minor test comments.

http://codereview.chromium.org/1371002/diff/19001/20007
File chrome/browser/sessions/session_restore_browsertest.cc (right):

http://codereview.chromium.org/1371002/diff/19001/20007#newcode42
chrome/browser/sessions/session_restore_browsertest.cc:42:
EXPECT_TRUE(new_browser != NULL);
This should be ASSERT_TRUE to avoid a crash.

http://codereview.chromium.org/1371002/diff/19001/20007#newcode45
chrome/browser/sessions/session_restore_browsertest.cc:45: EXPECT_EQ(1,
new_browser->tab_count());
Same here.

Powered by Google App Engine
This is Rietveld 408576698