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

Issue 2519953004: Profile deletion logic refactored. (Closed)

Created:
4 years, 1 month ago by palar
Modified:
4 years ago
CC:
chromium-reviews, Eli Wald, rginda+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify profile deletion logic across platforms. Profile deletion have quite fuzzy logic while deleting active profile: Sole profile deletion will open another window with newly created profile. If there is only one browser running, and there is another profile - on MacOS we will open browser with it, on other platforms browser will be closed. And finaly if there two browsers with different profiles running, and total three or more profiles - on MacOS new browser can or can not be opened. What we shall do: 1. If deletion happend with not active profile and not under guest profile - silently delete it. 2. If an active profile is pending for deletion - find another browser running, and use its profile as fallback. 3. If there no another browser running - load any existing profile. 4. If there no non-legacy-supervised profiles left - create a new one. 5. Mark existed/loaded/created profile as active and pass it to the callback. From user perspective logic become much more clear, if we take some action which kill current browser - we either switch to another open browser, or open a new one with appropriate profile. No more platform specific behaviour or special rules dependant on total profile count. What changed: * Removed Mac-specific case when it can open a new browser window while there is browser with another profile running. * On non-Mac platforms deleting active profile with no other browser running will not terminate browser process, instead a new browser window will be oppened with existed or newly created profile. BUG= R=anthonyvd@chromium.org, bauerb@chromium.org Committed: https://crrev.com/198d711e1e047b20d235c430a697f1b39a651b08 Cr-Commit-Position: refs/heads/master@{#434463}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review fixes #

Total comments: 1

Patch Set 3 : Comment typo fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -44 lines) Patch
M chrome/browser/profiles/profile_manager.cc View 1 2 2 chunks +39 lines, -44 lines 0 comments Download

Messages

Total messages: 42 (17 generated)
palar
4 years, 1 month ago (2016-11-22 11:07:19 UTC) #1
Bernhard Bauer
This changes existing behavior, right? Specifically, if a) we're on Linux or Windows, b) there ...
4 years, 1 month ago (2016-11-22 14:16:45 UTC) #2
palar
On 2016/11/22 14:16:45, Bernhard Bauer wrote: > This changes existing behavior, right? Specifically, if > ...
4 years, 1 month ago (2016-11-22 14:34:15 UTC) #3
palar
On 2016/11/22 14:16:45, Bernhard Bauer wrote: > This changes existing behavior, right? Specifically, if > ...
4 years, 1 month ago (2016-11-22 14:59:15 UTC) #5
Bernhard Bauer
On 2016/11/22 14:34:15, palar wrote: > On 2016/11/22 14:16:45, Bernhard Bauer wrote: > > This ...
4 years, 1 month ago (2016-11-22 15:10:52 UTC) #6
palar
On 2016/11/22 15:10:52, Bernhard Bauer wrote: > On 2016/11/22 14:34:15, palar wrote: > > On ...
4 years, 1 month ago (2016-11-22 15:50:01 UTC) #8
Eli Wald
On 2016/11/22 15:50:01, palar wrote: > On 2016/11/22 15:10:52, Bernhard Bauer wrote: > > On ...
4 years, 1 month ago (2016-11-22 16:01:08 UTC) #9
palar
On 2016/11/22 16:01:08, ewald wrote: > On 2016/11/22 15:50:01, palar wrote: > > On 2016/11/22 ...
4 years, 1 month ago (2016-11-22 16:09:48 UTC) #10
palar
On 2016/11/22 16:09:48, palar wrote: > On 2016/11/22 16:01:08, ewald wrote: > > On 2016/11/22 ...
4 years ago (2016-11-23 16:08:47 UTC) #11
Bernhard Bauer
Can you update the CL title to something a bit more descriptive? Something like my ...
4 years ago (2016-11-23 16:14:41 UTC) #12
palar
On 2016/11/23 16:14:41, Bernhard Bauer wrote: > Can you update the CL title to something ...
4 years ago (2016-11-23 16:19:03 UTC) #14
Bernhard Bauer
Thanks! LGTM.
4 years ago (2016-11-23 16:48:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519953004/20001
4 years ago (2016-11-23 16:49:27 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/311523)
4 years ago (2016-11-23 17:02:33 UTC) #19
anthonyvd
lgtm % small nit https://codereview.chromium.org/2519953004/diff/20001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/2519953004/diff/20001/chrome/browser/profiles/profile_manager.cc#newcode1325 chrome/browser/profiles/profile_manager.cc:1325: // Serch for an active ...
4 years ago (2016-11-23 21:03:17 UTC) #20
palar
On 2016/11/23 21:03:17, anthonyvd wrote: > lgtm % small nit > > https://codereview.chromium.org/2519953004/diff/20001/chrome/browser/profiles/profile_manager.cc > File ...
4 years ago (2016-11-24 08:09:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519953004/40001
4 years ago (2016-11-24 08:10:11 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years ago (2016-11-24 10:11:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519953004/40001
4 years ago (2016-11-24 10:28:34 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years ago (2016-11-24 12:29:23 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519953004/40001
4 years ago (2016-11-24 13:52:39 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/321637)
4 years ago (2016-11-24 15:10:27 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519953004/40001
4 years ago (2016-11-25 08:32:30 UTC) #37
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-25 09:08:57 UTC) #40
commit-bot: I haz the power
4 years ago (2016-11-25 09:10:24 UTC) #42
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/198d711e1e047b20d235c430a697f1b39a651b08
Cr-Commit-Position: refs/heads/master@{#434463}

Powered by Google App Engine
This is Rietveld 408576698