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

Issue 9087009: Restore all profiles which were active when restoring the last open pages. (Closed)

Created:
8 years, 11 months ago by marja
Modified:
8 years, 11 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, achuith+watch_chromium.org
Visibility:
Public.

Description

Restore all profiles which were active when restoring the last open pages. Upon startup, all profiles which had browsers open at the last exit are restored. This will restore the last open pages if the profile settings so dictate. BUG=99088 TEST=see bug & ProfileManagerTest.LastActiveProfiles(AtShutdown)?, BrowserInitTest.StartupURLsForTwoProfiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117033 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117420

Patch Set 1 #

Patch Set 2 : URLs from command line are passed only to the last active profile. #

Patch Set 3 : . #

Patch Set 4 : Tests. #

Patch Set 5 : Tests. #

Total comments: 2

Patch Set 6 : Fix. #

Total comments: 4

Patch Set 7 : Rebased. #

Total comments: 14

Patch Set 8 : Code review. #

Patch Set 9 : Test fix. #

Patch Set 10 : Fix http://crbug.com/109812 #

Total comments: 6

Patch Set 11 : Code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -29 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +100 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_init.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +39 lines, -17 lines 0 comments Download
M chrome/browser/ui/browser_init_browsertest.cc View 1 2 3 4 5 6 7 8 4 chunks +72 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
marja
Hi Jochen, This is my first attempt to restore all profiles when restoring last open ...
8 years, 11 months ago (2012-01-04 14:58:03 UTC) #1
jochen (gone - plz use gerrit)
lg so far now some tests would be nice :)
8 years, 11 months ago (2012-01-05 13:07:58 UTC) #2
marja
On 2012/01/05 13:07:58, jochen wrote: > now some tests would be nice :) Tests added. ...
8 years, 11 months ago (2012-01-09 10:39:48 UTC) #3
jochen (gone - plz use gerrit)
lgtm http://codereview.chromium.org/9087009/diff/11001/chrome/browser/extensions/extension_browsertest.h File chrome/browser/extensions/extension_browsertest.h (right): http://codereview.chromium.org/9087009/diff/11001/chrome/browser/extensions/extension_browsertest.h#newcode140 chrome/browser/extensions/extension_browsertest.h:140: protected: why is this needed?
8 years, 11 months ago (2012-01-09 10:51:23 UTC) #4
marja
Thanks for the review! http://codereview.chromium.org/9087009/diff/11001/chrome/browser/extensions/extension_browsertest.h File chrome/browser/extensions/extension_browsertest.h (right): http://codereview.chromium.org/9087009/diff/11001/chrome/browser/extensions/extension_browsertest.h#newcode140 chrome/browser/extensions/extension_browsertest.h:140: protected: On 2012/01/09 10:51:23, jochen ...
8 years, 11 months ago (2012-01-09 11:04:32 UTC) #5
marja
Hi OWNERS {mirandac,pkasting}, could you review the following parts: mirandac: chrome/browser/profiles/* pkasting: chrome/browser/ui/* Thanks!
8 years, 11 months ago (2012-01-09 13:33:20 UTC) #6
Miranda Callahan
Thanks, Marja -- LGTM with a couple comments. http://codereview.chromium.org/9087009/diff/12014/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/9087009/diff/12014/chrome/browser/profiles/profile_manager.cc#newcode498 chrome/browser/profiles/profile_manager.cc:498: default: ...
8 years, 11 months ago (2012-01-09 14:38:54 UTC) #7
Peter Kasting
LGTM with nits http://codereview.chromium.org/9087009/diff/12016/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/9087009/diff/12016/chrome/browser/ui/browser_init.cc#newcode1675 chrome/browser/ui/browser_init.cc:1675: CommandLine::SwitchMap::const_iterator switch_it; Nit: Declare loop iterators/indexes ...
8 years, 11 months ago (2012-01-10 02:20:12 UTC) #8
marja
Thanks for review & comments! (I also did a tiny test fix, the added BrowserInit ...
8 years, 11 months ago (2012-01-10 14:12: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/9087009/17002
8 years, 11 months ago (2012-01-10 14:13:06 UTC) #10
commit-bot: I haz the power
Change committed as 117033
8 years, 11 months ago (2012-01-10 16:10:09 UTC) #11
marja
This was committed but reverted because of www.crbug.com/109812 . Patch set 10 contains a fix, ...
8 years, 11 months ago (2012-01-11 14:48:57 UTC) #12
Peter Kasting
LGTM http://codereview.chromium.org/9087009/diff/27001/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/9087009/diff/27001/chrome/browser/ui/browser_init.cc#newcode1682 chrome/browser/ui/browser_init.cc:1682: is_first_run, return_code)) { Nit: No need for {}; ...
8 years, 11 months ago (2012-01-11 18:38:01 UTC) #13
marja
Thanks for comments again! http://codereview.chromium.org/9087009/diff/27001/chrome/browser/ui/browser_init.cc File chrome/browser/ui/browser_init.cc (right): http://codereview.chromium.org/9087009/diff/27001/chrome/browser/ui/browser_init.cc#newcode1682 chrome/browser/ui/browser_init.cc:1682: is_first_run, return_code)) { On 2012/01/11 ...
8 years, 11 months ago (2012-01-12 09:20:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/9087009/32001
8 years, 11 months ago (2012-01-12 09:20:50 UTC) #15
commit-bot: I haz the power
Try job failure for 9087009-32001 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 11 months ago (2012-01-12 09:55:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/9087009/32001
8 years, 11 months ago (2012-01-12 10:08:54 UTC) #17
commit-bot: I haz the power
8 years, 11 months ago (2012-01-12 11:48:49 UTC) #18
Change committed as 117420

Powered by Google App Engine
This is Rietveld 408576698