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

Issue 2605463003: Fix the Crash in the launcher's start page on Chrome OS. (Closed)

Created:
4 years 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 on Chrome OS. 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(). This simple CL is a temporary fix that meant to merge back to M56. It will be reverted later on Tot and a better but more complicated fix will be landed. BUG=675150 Committed: https://crrev.com/49ff293042830e095777651dc4058772af41fdda Cr-Commit-Position: refs/heads/master@{#441275}

Patch Set 1 #

Total comments: 2

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

Total comments: 4

Patch Set 3 : . #

Patch Set 4 : Address xiyuan@'s offline comment. #

Patch Set 5 : nit fix. #

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

Messages

Total messages: 22 (10 generated)
xdai1
xiyuan@, could you help review this CL please? Thanks!
4 years ago (2016-12-23 01:09:28 UTC) #2
xiyuan
https://codereview.chromium.org/2605463003/diff/1/ui/app_list/views/start_page_view.cc File ui/app_list/views/start_page_view.cc (right): https://codereview.chromium.org/2605463003/diff/1/ui/app_list/views/start_page_view.cc#newcode195 ui/app_list/views/start_page_view.cc:195: ScheduleUpdate(); Is this necessary? We are in Update(), which ...
3 years, 12 months ago (2016-12-23 05:56:22 UTC) #7
xdai1
xiyuan@, please take another look. Thanks! https://codereview.chromium.org/2605463003/diff/1/ui/app_list/views/start_page_view.cc File ui/app_list/views/start_page_view.cc (right): https://codereview.chromium.org/2605463003/diff/1/ui/app_list/views/start_page_view.cc#newcode195 ui/app_list/views/start_page_view.cc:195: ScheduleUpdate(); On 2016/12/23 ...
3 years, 11 months ago (2016-12-28 21:40:16 UTC) #8
xiyuan
https://codereview.chromium.org/2605463003/diff/20001/ui/app_list/views/start_page_view.cc File ui/app_list/views/start_page_view.cc (left): https://codereview.chromium.org/2605463003/diff/20001/ui/app_list/views/start_page_view.cc#oldcode193 ui/app_list/views/start_page_view.cc:193: CreateAppsGrid(std::min(kNumStartPageTiles, display_results.size())); Would this change have side effect that ...
3 years, 11 months ago (2017-01-03 17:05:14 UTC) #9
xdai1
xiyuan@, thanks for the review. Please take another look, thanks! https://codereview.chromium.org/2605463003/diff/20001/ui/app_list/views/start_page_view.cc File ui/app_list/views/start_page_view.cc (left): https://codereview.chromium.org/2605463003/diff/20001/ui/app_list/views/start_page_view.cc#oldcode193 ...
3 years, 11 months ago (2017-01-03 19:15:42 UTC) #10
xdai1
xiyuan@, as we discussed offline, please take a look at the temporary fix. I will ...
3 years, 11 months ago (2017-01-03 21:22:32 UTC) #12
xiyuan
lgtm
3 years, 11 months ago (2017-01-03 21:24:16 UTC) #13
xdai1
xiyuan@, please take another look at this CL to see if it still looks good ...
3 years, 11 months ago (2017-01-03 23:36:56 UTC) #14
xiyuan
On 2017/01/03 23:36:56, xdai1 wrote: > xiyuan@, please take another look at this CL to ...
3 years, 11 months ago (2017-01-04 00:05:23 UTC) #15
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/2605463003/80001
3 years, 11 months ago (2017-01-04 00:32:01 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2017-01-04 01:18:21 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 01:23:28 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/49ff293042830e095777651dc4058772af41fdda
Cr-Commit-Position: refs/heads/master@{#441275}

Powered by Google App Engine
This is Rietveld 408576698