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

Issue 9232007: Fix: after updating, restore tabs from all profiles. (Closed)

Created:
8 years, 11 months ago by marja
Modified:
8 years, 11 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Fix: after updating, restore tabs from all profiles. Also, launch the profiles in the order they became active. (Windows are still not launched in the original order, since that information is lost.) BUG=109816 TEST=See bug & BrowserInitTest.UpdateWithTwoProfiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118286

Patch Set 1 #

Patch Set 2 : Tests. #

Patch Set 3 : Test fixes + better tests. #

Total comments: 2

Patch Set 4 : Test fixes. #

Patch Set 5 : Code review. #

Patch Set 6 : Test(ability) fixes: BrowserInit::WasRestarted. #

Patch Set 7 : Fix: last_used_profile might be the default profile, and not in last_active_profiles. #

Patch Set 8 : Hopefully the real test fix. #

Patch Set 9 : . #

Total comments: 4

Patch Set 10 : Code review. #

Total comments: 3

Patch Set 11 : Code review. #

Patch Set 12 : DCHECK fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -47 lines) Patch
M chrome/browser/sessions/session_service.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_init.h View 1 2 3 4 5 6 7 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +53 lines, -42 lines 0 comments Download
M chrome/browser/ui/browser_init_browsertest.cc View 1 2 3 4 5 6 7 8 6 chunks +80 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
marja
Hi, This is a fix to http://codereview.chromium.org/9087009 . pkasting: Could you review this, too? Thanks!
8 years, 11 months ago (2012-01-16 15:55:16 UTC) #1
Peter Kasting
LGTM Your comment makes me wonder if we can save and restore the window Z-order ...
8 years, 11 months ago (2012-01-16 20:13:05 UTC) #2
marja
Thanks for the comments! In addition, I did the following fixes: - The BrowserInitTest::UpdateWithTwoProfiles was ...
8 years, 11 months ago (2012-01-18 17:08:17 UTC) #3
Peter Kasting
On 2012/01/18 17:08:17, marja wrote: > Afaics, the remaining "windows not in the correct order" ...
8 years, 11 months ago (2012-01-18 17:30:03 UTC) #4
marja
Thanks for comments! http://codereview.chromium.org/9232007/diff/17002/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/9232007/diff/17002/chrome/browser/ui/browser_init.cc#newcode1695 chrome/browser/ui/browser_init.cc:1695: command_line : command_line_without_urls, *it, cur_dir, On ...
8 years, 11 months ago (2012-01-18 18:01:12 UTC) #5
Peter Kasting
LGTM http://codereview.chromium.org/9232007/diff/24001/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/9232007/diff/24001/chrome/browser/ui/browser_init.cc#newcode1705 chrome/browser/ui/browser_init.cc:1705: if (last_opened_profiles.empty()) { Nit: We might also want ...
8 years, 11 months ago (2012-01-18 18:04:30 UTC) #6
marja
Thanks for the review! http://codereview.chromium.org/9232007/diff/24001/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/9232007/diff/24001/chrome/browser/ui/browser_init.cc#newcode1705 chrome/browser/ui/browser_init.cc:1705: if (last_opened_profiles.empty()) { On 2012/01/18 ...
8 years, 11 months ago (2012-01-19 08:38:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/9232007/28001
8 years, 11 months ago (2012-01-19 08:52:09 UTC) #8
marja
http://codereview.chromium.org/9232007/diff/24001/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/9232007/diff/24001/chrome/browser/ui/browser_init.cc#newcode1705 chrome/browser/ui/browser_init.cc:1705: if (last_opened_profiles.empty()) { On 2012/01/19 08:38:23, marja wrote: > ...
8 years, 11 months ago (2012-01-19 10:27:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/9232007/33001
8 years, 11 months ago (2012-01-19 10:27:17 UTC) #10
commit-bot: I haz the power
Change committed as 118286
8 years, 11 months ago (2012-01-19 11:35:02 UTC) #11
Peter Kasting
On 2012/01/19 10:27:02, marja wrote: > Oops, I was wrong. The "first run" is not ...
8 years, 11 months ago (2012-01-19 18:41:17 UTC) #12
marja
8 years, 11 months ago (2012-01-20 07:04:20 UTC) #13
On 2012/01/19 18:41:17, Peter Kasting wrote:
> On 2012/01/19 10:27:02, marja wrote:
> > Oops, I was wrong. The "first run" is not the only case when
> > last_opened_profiles is empty. The other case is after the user has exited
the
> > browser by closing all windows for all profiles.
> 
> Does this mean Wrench->Exit?  Or does this refer to manually closing windows
one
> by one?
> 
> If the former, then I'm confused how we can have a shutdown with multiple
"last
> opened" profiles except when recovering from a crash.  If the latter, and the
> former causes us to reopen all windows on restart, this is fine.

Yes, the latter, and the former causes us to reopen all windows.

Powered by Google App Engine
This is Rietveld 408576698