Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1041)

Issue 1026005: Makes pinned tab restore on startup if you haven't enabled session (Closed)

Created:
10 years, 9 months ago by sky
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam+cc_chromium.org, Alexander Potapenko, John Grabowski, amit, kuchhal, brettw+cc_chromium.org, ncarter (slow), fbarchard, Alpha Left Google, Erik does not do reviews, jam, apatrick_chromium, stuartmorgan, darin-cc_chromium.org, tim (not reviewing), ben+cc_chromium.org, Paul Godavari, dpranke+watch_chromium.org, pam+watch_chromium.org, awong, Timur Iskhodzhanov, scherkus (not reviewing), michaeln, idana, Aaron Boodman, Paweł Hajdan Jr.
Visibility:
Public.

Description

Makes pinned tab restore on startup if you haven't enabled session restore. BUG=23613 TEST=turn off session restore, pin a tab, restart chrome and make sure you get back the pinned tab. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41958

Patch Set 1 #

Patch Set 2 : check #

Total comments: 3

Patch Set 3 : check #

Patch Set 4 : check #

Total comments: 22

Patch Set 5 : check #

Total comments: 2

Patch Set 6 : check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+629 lines, -79 lines) Patch
M chrome/browser/browser.h View 1 4 chunks +25 lines, -5 lines 0 comments Download
M chrome/browser/browser.cc View 1 2 3 4 7 chunks +45 lines, -22 lines 0 comments Download
M chrome/browser/browser_browsertest.cc View 1 2 3 4 5 4 chunks +67 lines, -1 line 0 comments Download
M chrome/browser/browser_init.h View 1 2 3 4 5 4 chunks +39 lines, -9 lines 0 comments Download
M chrome/browser/browser_init.cc View 1 2 3 4 5 6 chunks +63 lines, -42 lines 0 comments Download
M chrome/browser/browser_list.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/browser_prefs.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profile.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/tabs/pinned_tab_codec.h View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/tabs/pinned_tab_codec.cc View 1 2 3 4 5 1 chunk +134 lines, -0 lines 0 comments Download
A chrome/browser/tabs/pinned_tab_codec_unittest.cc View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/tabs/pinned_tab_service.h View 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/tabs/pinned_tab_service.cc View 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/notification_type.h View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
sky
10 years, 9 months ago (2010-03-17 18:04:19 UTC) #1
Paweł Hajdan Jr.
Drive-by with some test comments. http://codereview.chromium.org/1026005/diff/2001/3003 File chrome/browser/browser_browsertest.cc (right): http://codereview.chromium.org/1026005/diff/2001/3003#newcode468 chrome/browser/browser_browsertest.cc:468: ASSERT_TRUE(server); nit: Could you ...
10 years, 9 months ago (2010-03-17 18:10:25 UTC) #2
sky
All addressed. I had tried EXPECT_EQ earlier and got a compile error. I must have ...
10 years, 9 months ago (2010-03-17 18:47:27 UTC) #3
Paweł Hajdan Jr.
The bits I commented about in the drive-by now LGTM.
10 years, 9 months ago (2010-03-17 18:53:28 UTC) #4
Erik does not do reviews
http://codereview.chromium.org/1026005/diff/11001/12001 File chrome/browser/browser.cc (right): http://codereview.chromium.org/1026005/diff/11001/12001#newcode660 chrome/browser/browser.cc:660: tab_restore_service->BrowserClosing(this); it seems like this should just use your ...
10 years, 9 months ago (2010-03-17 22:57:59 UTC) #5
sky
All updated. http://codereview.chromium.org/1026005/diff/11001/12001 File chrome/browser/browser.cc (right): http://codereview.chromium.org/1026005/diff/11001/12001#newcode660 chrome/browser/browser.cc:660: tab_restore_service->BrowserClosing(this); On 2010/03/17 22:58:00, Erik Kay wrote: ...
10 years, 9 months ago (2010-03-17 23:46:22 UTC) #6
Erik does not do reviews
http://codereview.chromium.org/1026005/diff/11001/12003 File chrome/browser/browser_browsertest.cc (right): http://codereview.chromium.org/1026005/diff/11001/12003#newcode464 chrome/browser/browser_browsertest.cc:464: IN_PROC_BROWSER_TEST_F(BrowserTest, RestorePinnedTabs) { On 2010/03/17 23:46:23, sky wrote: > ...
10 years, 9 months ago (2010-03-18 00:10:12 UTC) #7
sky
All updated. I moved the struct into BrowserInit::LaunchWithProfile. If we find we need it in ...
10 years, 9 months ago (2010-03-18 04:10:22 UTC) #8
Erik does not do reviews
10 years, 9 months ago (2010-03-18 14:45:45 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698