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

Issue 589333002: Remove StartPageView from being a AppListViewDelegateObserver (Closed)

Created:
6 years, 3 months ago by tapted
Modified:
6 years, 3 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@20140923-AppList-OnShutdown
Project:
chromium
Visibility:
Public.

Description

Remove StartPageView from being a AppListViewDelegateObserver It observes OnProfilesChanged, but the set of profiles changing doesn't affect the start page. However, it probably once helped avoid crashes when deleting profiles since the AppListViewDelegate would hold on to the Profile* until the app list was shown again. But that was fixed in http://crrev.com/291852 (now AppListServiceImpl::DestroyAppList() will reliably tear down the AppListView if the profile is destroyed, without having to wait for a ShowAppList(). When regular profile switching occurs (i.e. not when the profile is being destroyed), the profile currently being used by the StartPageView is also replaced. That is handled by AppListMainView::ModelChanged() calling into ContentsView::InitNamedPages() which makes an entirely new StartPageView(). BUG=403647 Committed: https://crrev.com/d6828ed750604b5914fa2cc26a739783efa0159b Cr-Commit-Position: refs/heads/master@{#296175}

Patch Set 1 #

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -11 lines) Patch
M ui/app_list/views/start_page_view.h View 2 chunks +1 line, -5 lines 0 comments Download
M ui/app_list/views/start_page_view.cc View 1 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
tapted
for calamity. Pretty sure this is right....
6 years, 3 months ago (2014-09-23 06:35:27 UTC) #2
calamity
lgtm. I think the beginning of the second paragraph has a word missing.
6 years, 3 months ago (2014-09-23 08:06:11 UTC) #3
tapted
On 2014/09/23 08:06:11, calamity wrote: > lgtm. I think the beginning of the second paragraph ...
6 years, 3 months ago (2014-09-23 13:32:17 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/589333002/20001
6 years, 3 months ago (2014-09-23 13:33:36 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 076150bcba691501962046450830327de7eaf1fb
6 years, 3 months ago (2014-09-23 13:38:18 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 13:38:55 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d6828ed750604b5914fa2cc26a739783efa0159b
Cr-Commit-Position: refs/heads/master@{#296175}

Powered by Google App Engine
This is Rietveld 408576698