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

Issue 1113333003: Don't create a new profile when cleaning up stale ephemeral profiles. (Closed)

Created:
5 years, 7 months ago by Bernhard Bauer
Modified:
5 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, tapted, michaelpg+watch-options_chromium.org, Matt Giuca, tfarina, rginda+watch_chromium.org, pam+watch_chromium.org, benwells
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't create a new profile when cleaning up stale ephemeral profiles. As a side effect, this _immediately_ updates the last used profile to a new path if necessary, so synchronous profile loading will create a new profile there instead of opening the old profile while it is in the process of being deleted. BUG=479309, 425785, 483528 Committed: https://crrev.com/8b02218a0984f93d80443a08b6d4cb73e330812e Cr-Commit-Position: refs/heads/master@{#329608}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : fix uitest #

Patch Set 4 : fix android + mac compile #

Patch Set 5 : fix compile and add unit test #

Patch Set 6 : fix android compile #

Patch Set 7 : argh #

Patch Set 8 : fix? #

Total comments: 10

Patch Set 9 : review #

Patch Set 10 : rewrite #

Patch Set 11 : fix mac compile #

Patch Set 12 : fix #

Patch Set 13 : investigate #

Patch Set 14 : mooh #

Patch Set 15 : x #

Patch Set 16 : test #

Total comments: 12

Patch Set 17 : review #

Patch Set 18 : review #

Total comments: 3

Patch Set 19 : x #

Patch Set 20 : fix #

Patch Set 21 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -83 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -23 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +53 lines, -25 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/profile_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/profile_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
Bernhard Bauer
Please review. I'm not happy to add another parameter to ScheduleProfileForDeletion, but I don't know ...
5 years, 7 months ago (2015-05-05 11:36:58 UTC) #2
Mike Lerman
I've provided some comments, but if I can suggest an alternative... For this scenario, cleaning ...
5 years, 7 months ago (2015-05-05 13:44:45 UTC) #3
Bernhard Bauer
On 2015/05/05 13:44:45, Mike Lerman wrote: > I've provided some comments, but if I can ...
5 years, 7 months ago (2015-05-05 14:33:22 UTC) #4
Mike Lerman
On 2015/05/05 14:33:22, Bernhard Bauer wrote: > On 2015/05/05 13:44:45, Mike Lerman wrote: > > ...
5 years, 7 months ago (2015-05-05 19:09:50 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113333003/280001
5 years, 7 months ago (2015-05-11 13:07:45 UTC) #7
Bernhard Bauer
On 2015/05/05 19:09:50, Mike Lerman (OOO May 8) wrote: > Looking at ProfileManager::GetLastUsedProfileDir, if there's ...
5 years, 7 months ago (2015-05-11 13:10:29 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-11 14:04:19 UTC) #10
Mike Lerman
I love it! I really like the refactoring in ProfileManager to create GetLastUsedProfileName, and the ...
5 years, 7 months ago (2015-05-11 15:06:22 UTC) #11
Bernhard Bauer
Adding OWNERS: * Ben for App List * Peter for Search Engines (see https://codereview.chromium.org/1113333003/diff/120001/components/search_engines/template_url_service.cc#newcode813) * ...
5 years, 7 months ago (2015-05-11 16:52:09 UTC) #13
Mike Lerman
still looks great to me :)
5 years, 7 months ago (2015-05-11 17:48:05 UTC) #14
Nico
chromebrowsermain lgtm
5 years, 7 months ago (2015-05-11 18:08:16 UTC) #15
Peter Kasting
https://codereview.chromium.org/1113333003/diff/320001/components/search_engines/template_url_service.cc File components/search_engines/template_url_service.cc (right): https://codereview.chromium.org/1113333003/diff/320001/components/search_engines/template_url_service.cc#newcode813 components/search_engines/template_url_service.cc:813: on_loaded_callbacks_.Notify(); This seems like a strange fix. We're calling ...
5 years, 7 months ago (2015-05-11 22:15:06 UTC) #16
benwells
Punting to mgiuca
5 years, 7 months ago (2015-05-12 04:17:59 UTC) #18
Bernhard Bauer
https://codereview.chromium.org/1113333003/diff/320001/components/search_engines/template_url_service.cc File components/search_engines/template_url_service.cc (right): https://codereview.chromium.org/1113333003/diff/320001/components/search_engines/template_url_service.cc#newcode813 components/search_engines/template_url_service.cc:813: on_loaded_callbacks_.Notify(); On 2015/05/11 22:15:06, Peter Kasting wrote: > This ...
5 years, 7 months ago (2015-05-12 13:58:25 UTC) #19
Peter Kasting
https://codereview.chromium.org/1113333003/diff/320001/components/search_engines/template_url_service.cc File components/search_engines/template_url_service.cc (right): https://codereview.chromium.org/1113333003/diff/320001/components/search_engines/template_url_service.cc#newcode813 components/search_engines/template_url_service.cc:813: on_loaded_callbacks_.Notify(); On 2015/05/12 13:58:24, Bernhard Bauer wrote: > On ...
5 years, 7 months ago (2015-05-12 18:54:08 UTC) #20
Bernhard Bauer
On 2015/05/12 18:54:08, Peter Kasting wrote: > https://codereview.chromium.org/1113333003/diff/320001/components/search_engines/template_url_service.cc > File components/search_engines/template_url_service.cc (right): > > https://codereview.chromium.org/1113333003/diff/320001/components/search_engines/template_url_service.cc#newcode813 ...
5 years, 7 months ago (2015-05-12 21:13:21 UTC) #21
Peter Kasting
On 2015/05/12 21:13:21, Bernhard Bauer wrote: > With that being said, I reverted the changes ...
5 years, 7 months ago (2015-05-12 21:29:11 UTC) #22
Matt Giuca
app_list LGTM. Thanks, this cleans up a bit of messy code in there.
5 years, 7 months ago (2015-05-13 06:09:20 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113333003/380001
5 years, 7 months ago (2015-05-13 09:15:33 UTC) #26
commit-bot: I haz the power
Committed patchset #21 (id:380001)
5 years, 7 months ago (2015-05-13 09:18:51 UTC) #27
commit-bot: I haz the power
5 years, 7 months ago (2015-05-13 09:19:39 UTC) #28
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/8b02218a0984f93d80443a08b6d4cb73e330812e
Cr-Commit-Position: refs/heads/master@{#329608}

Powered by Google App Engine
This is Rietveld 408576698