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

Issue 2732633003: arc: Handle position conflict in app list items. (Closed)

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

Description

arc: Handle position conflict in app list items. It is not guaranteed that sync items have unique positions. This may cause crash in case web store app has conflicting pos with some other app. TEST=Unit test added BUG=692802 Review-Url: https://codereview.chromium.org/2732633003 Cr-Commit-Position: refs/heads/master@{#455195} Committed: https://chromium.googlesource.com/chromium/src/+/11f9ee62d5cb9fbc3d3f1458e145b06be67f78ae

Patch Set 1 #

Total comments: 7

Patch Set 2 : rebase/nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -21 lines) Patch
M chrome/browser/ui/app_list/app_list_syncable_service.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 4 chunks +42 lines, -21 lines 0 comments Download
A chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc View 1 1 chunk +133 lines, -0 lines 2 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (16 generated)
khmel
Hi Steven, PTAL https://codereview.chromium.org/2732633003/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc File chrome/browser/ui/app_list/app_list_syncable_service.cc (left): https://codereview.chromium.org/2732633003/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#oldcode1147 chrome/browser/ui/app_list/app_list_syncable_service.cc:1147: static_cast<AppListFolderItem*>(model_->AddItem(std::move(new_folder))); It is not safe to ...
3 years, 9 months ago (2017-03-04 02:57:06 UTC) #2
stevenjb
Ugh. Thanks for tracking this down. https://codereview.chromium.org/2732633003/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc File chrome/browser/ui/app_list/app_list_syncable_service.cc (right): https://codereview.chromium.org/2732633003/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode1197 chrome/browser/ui/app_list/app_list_syncable_service.cc:1197: continue; This is ...
3 years, 9 months ago (2017-03-06 21:35:15 UTC) #7
khmel
Thanks Steven for taking a look. PTAL updated version. https://codereview.chromium.org/2732633003/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc File chrome/browser/ui/app_list/app_list_syncable_service.cc (right): https://codereview.chromium.org/2732633003/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode1197 chrome/browser/ui/app_list/app_list_syncable_service.cc:1197: ...
3 years, 9 months ago (2017-03-06 22:38:15 UTC) #8
stevenjb
lgtm https://codereview.chromium.org/2732633003/diff/20001/chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc File chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc (right): https://codereview.chromium.org/2732633003/diff/20001/chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc#newcode47 chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc:47: } Fancy :)
3 years, 9 months ago (2017-03-06 22:52:06 UTC) #9
khmel
Thank you for review! https://codereview.chromium.org/2732633003/diff/20001/chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc File chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc (right): https://codereview.chromium.org/2732633003/diff/20001/chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc#newcode47 chrome/browser/ui/app_list/app_list_syncable_service_unittest.cc:47: } On 2017/03/06 22:52:06, stevenjb ...
3 years, 9 months ago (2017-03-06 22:54:15 UTC) #10
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/2732633003/20001
3 years, 9 months ago (2017-03-06 22:55:07 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/378755)
3 years, 9 months ago (2017-03-07 00:14:27 UTC) #14
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/2732633003/20001
3 years, 9 months ago (2017-03-07 01:36:37 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/395324)
3 years, 9 months ago (2017-03-07 05:03:34 UTC) #18
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/2732633003/20001
3 years, 9 months ago (2017-03-07 05:28:19 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/379237)
3 years, 9 months ago (2017-03-07 07:05:30 UTC) #22
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/2732633003/20001
3 years, 9 months ago (2017-03-07 15:33:52 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/396114)
3 years, 9 months ago (2017-03-07 18:43:15 UTC) #26
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/2732633003/20001
3 years, 9 months ago (2017-03-07 18:46:37 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 20:21:44 UTC) #31
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/11f9ee62d5cb9fbc3d3f1458e145...

Powered by Google App Engine
This is Rietveld 408576698