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

Issue 266343002: Unload all apps / extensions when deleting a profile. (Closed)

Created:
6 years, 7 months ago by scheib
Modified:
6 years, 7 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, yoshiki+watch_chromium.org
Visibility:
Public.

Description

Unload all apps / extensions immediately when deleting a profile. Previously apps could remain running with references to profiles that had been deleted by users, but before the browser shut down and profiles were fully removed. Problems included E.g. opening a link in an app would open a tab in the deleted profile. Relanding patch: ShutdownStartupCycle failed in build [49353], this patch was speculatively reverted in r269383 [49355], but ShutdownStartupCycle failed again in [49362] after the revert had landed. [49353] http://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20%28dbg%29%281%29/builds/49353 [49355] http://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20%28dbg%29%281%29/builds/49355 [49362] http://build.chromium.org/p/chromium.mac/builders/Mac%2010.6%20Tests%20%28dbg%29%281%29/builds/49362 BUG=368684, 374683 TEST=Manual testing as described on http://crbug.com/368684#c1 and http://crbug.com/374683#c7 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269343 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270890 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272090

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Total comments: 4

Patch Set 3 : address sky comments #

Total comments: 2

Patch Set 4 : Test unloaded reason #

Patch Set 5 : merge TOT #

Patch Set 6 : Do not send NULL extension pointer in notifications. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -16 lines) Patch
M chrome/browser/background/background_contents_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_notification_types.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 4 chunks +22 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 9 chunks +35 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M extensions/common/extension.h View 1 2 3 4 1 chunk +7 lines, -5 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
scheib
6 years, 7 months ago (2014-05-06 22:19:20 UTC) #1
not at google - send to devlin
lgtm https://codereview.chromium.org/266343002/diff/40001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/266343002/diff/40001/chrome/browser/profiles/profile_manager.cc#newcode1102 chrome/browser/profiles/profile_manager.cc:1102: // Disable apps & extensions now to stop ...
6 years, 7 months ago (2014-05-06 22:25:28 UTC) #2
scheib
kalman, Thanks - refactored as requested. sky, ptal as owner: chrome/browser/background/background_contents_service.cc chrome/browser/chrome_notification_types.h chrome/browser/profiles/profile_manager.cc chrome/browser/ui/browser.cc https://codereview.chromium.org/266343002/diff/40001/chrome/browser/profiles/profile_manager.cc ...
6 years, 7 months ago (2014-05-07 21:29:35 UTC) #3
sky
https://codereview.chromium.org/266343002/diff/100001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/266343002/diff/100001/chrome/browser/extensions/extension_service.cc#newcode306 chrome/browser/extensions/extension_service.cc:306: content::NotificationService::AllBrowserContextsAndSources()); nit: seems like you could add for the ...
6 years, 7 months ago (2014-05-07 22:17:32 UTC) #4
scheib
Thanks, https://codereview.chromium.org/266343002/diff/100001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/266343002/diff/100001/chrome/browser/extensions/extension_service.cc#newcode306 chrome/browser/extensions/extension_service.cc:306: content::NotificationService::AllBrowserContextsAndSources()); On 2014/05/07 22:17:32, sky wrote: > nit: ...
6 years, 7 months ago (2014-05-08 15:17:51 UTC) #5
not at google - send to devlin
lgtm https://codereview.chromium.org/266343002/diff/120001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (right): https://codereview.chromium.org/266343002/diff/120001/chrome/browser/extensions/extension_service_unittest.cc#newcode6938 chrome/browser/extensions/extension_service_unittest.cc:6938: EXPECT_EQ(0u, registry_->blacklisted_extensions().size()); is there any chance you can ...
6 years, 7 months ago (2014-05-08 15:57:32 UTC) #6
sky
LGTM
6 years, 7 months ago (2014-05-08 15:58:44 UTC) #7
scheib
thx https://codereview.chromium.org/266343002/diff/120001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (right): https://codereview.chromium.org/266343002/diff/120001/chrome/browser/extensions/extension_service_unittest.cc#newcode6938 chrome/browser/extensions/extension_service_unittest.cc:6938: EXPECT_EQ(0u, registry_->blacklisted_extensions().size()); On 2014/05/08 15:57:33, kalman wrote: > ...
6 years, 7 months ago (2014-05-08 16:42:15 UTC) #8
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 7 months ago (2014-05-08 16:42:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/266343002/120002
6 years, 7 months ago (2014-05-08 16:44:04 UTC) #10
commit-bot: I haz the power
Change committed as 269343
6 years, 7 months ago (2014-05-09 17:03:07 UTC) #11
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 7 months ago (2014-05-14 14:49:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/266343002/150001
6 years, 7 months ago (2014-05-14 14:49:37 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 16:33:48 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 16:37:12 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/74421)
6 years, 7 months ago (2014-05-14 16:37:12 UTC) #16
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 7 months ago (2014-05-14 16:45:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/266343002/150001
6 years, 7 months ago (2014-05-14 16:45:50 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 16:51:07 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 17:04:50 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31281)
6 years, 7 months ago (2014-05-14 17:04:50 UTC) #21
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 7 months ago (2014-05-14 21:22:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/266343002/150001
6 years, 7 months ago (2014-05-14 21:23:19 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 21:45:41 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 21:59:47 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31548)
6 years, 7 months ago (2014-05-14 21:59:47 UTC) #26
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 7 months ago (2014-05-16 00:23:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/266343002/150001
6 years, 7 months ago (2014-05-16 00:24:05 UTC) #28
commit-bot: I haz the power
Change committed as 270890
6 years, 7 months ago (2014-05-16 01:26:34 UTC) #29
scheib
A revert of this CL has been created in https://codereview.chromium.org/289283013/ by scheib@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-21 16:59:24 UTC) #30
scheib
The CQ bit was checked by scheib@chromium.org
6 years, 7 months ago (2014-05-21 19:18:15 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/266343002/200001
6 years, 7 months ago (2014-05-21 19:56:37 UTC) #32
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 04:16:13 UTC) #33
Message was sent while issue was closed.
Change committed as 272090

Powered by Google App Engine
This is Rietveld 408576698