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

Issue 559823002: Observe chrome::NOTIFICATION_APP_TERMINATING in Chrome's AppListViewDelegate (Closed)

Created:
6 years, 3 months ago by tapted
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, Roger Tawa OOO till Jul 10th
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Observe chrome::NOTIFICATION_APP_TERMINATING in Chrome's AppListViewDelegate This allows custom launcher pages to be torn down in response to this notification in the same way that regular packaged app windows are. Currently these WebContents are torn down later, by Widget::CloseAllSecondaryWidgets(), but this relies on the WebContents lifetime being tied to a Widget. Observing NOTIFICATION_APP_TERMINATING also allows us to explore decoupling the AppListViewDelegate from the AppListView lifetime, and remove some special code on Mac to deal with updating the profile switcher (since the AppListViewDelegate is owned by a leaky singleton there). BUG=403647 Committed: https://crrev.com/ffbd8b951add65d1d610b25df7611861fd133cb2 Cr-Commit-Position: refs/heads/master@{#295194}

Patch Set 1 #

Patch Set 2 : Keep SigninManagerFactory non-Leaky #

Patch Set 3 : clear scoped observer too #

Total comments: 5

Patch Set 4 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -21 lines) Patch
M chrome/browser/signin/signin_manager_factory.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/signin/signin_manager_factory.cc View 1 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 4 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 3 6 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
tapted
Hi Matt - please take a look. For a bit more context, this is split ...
6 years, 3 months ago (2014-09-10 06:52:14 UTC) #2
Matt Giuca
lgtm https://codereview.chromium.org/559823002/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/559823002/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode205 chrome/browser/ui/app_list/app_list_view_delegate.cc:205: if (profile_ == new_profile) Are these profile checks ...
6 years, 3 months ago (2014-09-11 03:50:37 UTC) #3
tapted
https://codereview.chromium.org/559823002/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/559823002/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode205 chrome/browser/ui/app_list/app_list_view_delegate.cc:205: if (profile_ == new_profile) On 2014/09/11 03:50:37, Matt Giuca ...
6 years, 3 months ago (2014-09-11 04:57:45 UTC) #4
tapted
+rogerta please review for OWNERS in chrome/browser/signin
6 years, 3 months ago (2014-09-11 04:58:31 UTC) #6
Matt Giuca
https://codereview.chromium.org/559823002/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc File chrome/browser/ui/app_list/app_list_view_delegate.cc (right): https://codereview.chromium.org/559823002/diff/40001/chrome/browser/ui/app_list/app_list_view_delegate.cc#newcode205 chrome/browser/ui/app_list/app_list_view_delegate.cc:205: if (profile_ == new_profile) On 2014/09/11 04:57:45, tapted wrote: ...
6 years, 3 months ago (2014-09-11 08:17:58 UTC) #7
tapted
+tim - could you please take a look for OWNERS in chrome/browser/signin (roger is OOO ...
6 years, 3 months ago (2014-09-11 23:30:44 UTC) #9
tapted
rogerta (since you're back :), or timsteele: ping?
6 years, 3 months ago (2014-09-15 22:19:55 UTC) #10
Roger Tawa OOO till Jul 10th
lgtm for chrome/browser/signin
6 years, 3 months ago (2014-09-16 23:04:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/559823002/60001
6 years, 3 months ago (2014-09-16 23:07:29 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001) as d234f94573ad6d39ef0aecb92c6387b32422ba0c
6 years, 3 months ago (2014-09-17 00:49:00 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-17 00:50:09 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ffbd8b951add65d1d610b25df7611861fd133cb2
Cr-Commit-Position: refs/heads/master@{#295194}

Powered by Google App Engine
This is Rietveld 408576698