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

Issue 2609843004: Fix the Crash in the launcher's start page (a better approach). (Closed)

Created:
3 years, 11 months ago by xdai1
Modified:
3 years, 11 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, tfarina, Matt Giuca
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the Crash in the launcher's start page (a better approach). In Chrome OS launcher's start page, we recreate the app tile views if we need to display different numbers of apps compared with the previous time (e.g., install a new app or uninstall an existing app). We need to make sure the number of the displayed apps is properly updated. Otherwise, it might cause browser crash because of retrieving a stale pointer in StartPageView::StartPageTilesContainer::GetTileItemView(). Also refactor related functions. This is a better approach of https://codereview.chromium.org/2605463003/. BUG=675150 Review-Url: https://codereview.chromium.org/2609843004 Cr-Commit-Position: refs/heads/master@{#441733} Committed: https://chromium.googlesource.com/chromium/src/+/a1260e2951edbb3f8c0645827a3bb42a0ec7b926

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address xiyuan@'s comment. #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -31 lines) Patch
M ui/app_list/views/search_result_container_view.h View 2 chunks +7 lines, -7 lines 0 comments Download
M ui/app_list/views/search_result_container_view.cc View 3 chunks +15 lines, -15 lines 0 comments Download
M ui/app_list/views/search_result_list_view.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/search_result_list_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/search_result_tile_item_list_view.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/search_result_tile_item_list_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/start_page_view.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
xdai1
xiyuan@, this is the better approach as we discussed offline. Please take a look at ...
3 years, 11 months ago (2017-01-03 23:37:36 UTC) #2
xiyuan
lgtm https://codereview.chromium.org/2609843004/diff/1/ui/app_list/views/start_page_view.cc File ui/app_list/views/start_page_view.cc (right): https://codereview.chromium.org/2609843004/diff/1/ui/app_list/views/start_page_view.cc#newcode139 ui/app_list/views/start_page_view.cc:139: void UpdateSelectedIndex(int old_selected, int new_selected) override; nit: I ...
3 years, 11 months ago (2017-01-04 00:12:09 UTC) #3
xdai1
https://codereview.chromium.org/2609843004/diff/1/ui/app_list/views/start_page_view.cc File ui/app_list/views/start_page_view.cc (right): https://codereview.chromium.org/2609843004/diff/1/ui/app_list/views/start_page_view.cc#newcode139 ui/app_list/views/start_page_view.cc:139: void UpdateSelectedIndex(int old_selected, int new_selected) override; On 2017/01/04 00:12:09, ...
3 years, 11 months ago (2017-01-04 00:30:21 UTC) #4
xiyuan
https://codereview.chromium.org/2609843004/diff/1/ui/app_list/views/start_page_view.cc File ui/app_list/views/start_page_view.cc (right): https://codereview.chromium.org/2609843004/diff/1/ui/app_list/views/start_page_view.cc#newcode139 ui/app_list/views/start_page_view.cc:139: void UpdateSelectedIndex(int old_selected, int new_selected) override; On 2017/01/04 00:30:20, ...
3 years, 11 months ago (2017-01-04 00:36:27 UTC) #5
xdai1
xiyuan@, I've addressed your comment. Thanks for your review! https://codereview.chromium.org/2609843004/diff/1/ui/app_list/views/start_page_view.cc File ui/app_list/views/start_page_view.cc (right): https://codereview.chromium.org/2609843004/diff/1/ui/app_list/views/start_page_view.cc#newcode139 ui/app_list/views/start_page_view.cc:139: ...
3 years, 11 months ago (2017-01-04 23:18:41 UTC) #6
xiyuan
still lgtm
3 years, 11 months ago (2017-01-04 23:26:10 UTC) #7
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/2609843004/40001
3 years, 11 months ago (2017-01-05 18:54:04 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 19:37:42 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/a1260e2951edbb3f8c0645827a3b...

Powered by Google App Engine
This is Rietveld 408576698