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

Issue 2366073002: Fix crash on item drag in shelf. (Closed)

Created:
4 years, 2 months ago by khmel
Modified:
4 years, 2 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash on item drag in shelf. This handles the case when app list sync model may contain the same ordinals for different items (which is valid case). BUG=b/31708401 BUG=647855 TEST=Manually on device TEST=Extended unit_tests Committed: https://crrev.com/5e9607e4cd1197c7b9c4f2bfbeb76b825c91ef8f Cr-Commit-Position: refs/heads/master@{#420944}

Patch Set 1 #

Total comments: 7

Patch Set 2 : simplified #

Patch Set 3 : simplified2 #

Total comments: 2

Patch Set 4 : Drop NOTREACHED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -13 lines) Patch
M chrome/browser/ui/ash/chrome_launcher_prefs.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 3 2 chunks +16 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
khmel
Hi Steven, PTAL
4 years, 2 months ago (2016-09-23 22:45:14 UTC) #2
stevenjb
https://codereview.chromium.org/2366073002/diff/1/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2366073002/diff/1/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode676 chrome/browser/ui/ash/chrome_launcher_prefs.cc:676: DCHECK(app_id_before.empty() || app_id_before != app_id_after); Elim app_id_after and the ...
4 years, 2 months ago (2016-09-23 23:05:01 UTC) #3
khmel
Thank Steven for review PTAL https://codereview.chromium.org/2366073002/diff/1/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2366073002/diff/1/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode676 chrome/browser/ui/ash/chrome_launcher_prefs.cc:676: DCHECK(app_id_before.empty() || app_id_before != ...
4 years, 2 months ago (2016-09-26 16:43:36 UTC) #4
stevenjb
LGTM w/ NOTREACHED -> DCHECK https://codereview.chromium.org/2366073002/diff/1/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2366073002/diff/1/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode726 chrome/browser/ui/ash/chrome_launcher_prefs.cc:726: } On 2016/09/26 16:43:36, ...
4 years, 2 months ago (2016-09-26 17:34:07 UTC) #5
khmel
Thanks Steven for review. I also like your idea: >> app_service->SanitizePinPosition(start_pos) We can address it ...
4 years, 2 months ago (2016-09-26 18:11:08 UTC) #6
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/2366073002/60001
4 years, 2 months ago (2016-09-26 18:12:33 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-26 18:40:54 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 18:44:17 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5e9607e4cd1197c7b9c4f2bfbeb76b825c91ef8f
Cr-Commit-Position: refs/heads/master@{#420944}

Powered by Google App Engine
This is Rietveld 408576698