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

Issue 1003393002: After uninstall, remove last item in Launcher folder (Closed)

Created:
5 years, 9 months ago by Greg Levin
Modified:
5 years, 8 months ago
Reviewers:
stevenjb, jennyz
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

After uninstall, remove last item in Launcher folder App Launcher: After uninstalling second-to-last app in a folder, reparent last app to top level and delete folder. BUG=368111 TEST=Uninstall one app from a two-app folder. The remaining app should be moved to the main app list, and the folder deleted. Committed: https://crrev.com/740ee2670a9303bf17cff1cec762cb429c4041a4 Cr-Commit-Position: refs/heads/master@{#323797}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address reviewer comments #

Patch Set 3 : Move work from views to model, as per reviewer comment #

Total comments: 13

Patch Set 4 : Another round of revisions #

Total comments: 4

Patch Set 5 : More revisions, remove unneeded function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -3 lines) Patch
M chrome/browser/ui/app_list/app_list_syncable_service.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/app_list_model.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/app_list/app_list_model.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M ui/app_list/app_list_model_unittest.cc View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M ui/app_list/views/apps_grid_view.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (3 generated)
Greg Levin
Hey Jenny. Since you worked on the very similar Issue 357100 (even though it was ...
5 years, 9 months ago (2015-03-14 03:51:45 UTC) #2
jennyz
Can we write a unit test case for this operation? https://codereview.chromium.org/1003393002/diff/1/ui/app_list/app_list_model_observer.h File ui/app_list/app_list_model_observer.h (right): https://codereview.chromium.org/1003393002/diff/1/ui/app_list/app_list_model_observer.h#newcode33 ...
5 years, 9 months ago (2015-03-17 21:16:48 UTC) #3
stevenjb
I haven't looked at this code in a while, but I'm a little concerned about ...
5 years, 9 months ago (2015-03-23 19:34:31 UTC) #5
Greg Levin
Here are fixes to all comments except Steven's general structural one. I don't need a ...
5 years, 9 months ago (2015-03-23 22:04:50 UTC) #6
Greg Levin
Here's an updated (hopefully improved) version. Please have another look! > I think this would ...
5 years, 9 months ago (2015-03-25 21:58:16 UTC) #7
stevenjb
https://codereview.chromium.org/1003393002/diff/40001/ui/app_list/app_list_model.cc File ui/app_list/app_list_model.cc (right): https://codereview.chromium.org/1003393002/diff/40001/ui/app_list/app_list_model.cc#newcode227 ui/app_list/app_list_model.cc:227: DeleteItem(id); What happens if this is the last item ...
5 years, 9 months ago (2015-03-25 22:24:01 UTC) #8
Greg Levin
Still not sure if AppListMainView::OnSingleItemFolderWillBeDeleted() is exactly what you're looking for, but at least it's ...
5 years, 9 months ago (2015-03-26 19:45:11 UTC) #9
stevenjb
Much better. One suggestion then (assuming it works OK) I think we are good. https://codereview.chromium.org/1003393002/diff/40001/ui/app_list/app_list_model_unittest.cc ...
5 years, 8 months ago (2015-03-30 17:23:59 UTC) #10
Greg Levin
Good suggestion... that cleaned things up a lot! Please have another look! https://codereview.chromium.org/1003393002/diff/40001/ui/app_list/app_list_model_unittest.cc File ui/app_list/app_list_model_unittest.cc ...
5 years, 8 months ago (2015-03-30 23:08:52 UTC) #11
stevenjb
LGTM!
5 years, 8 months ago (2015-04-02 20:08:01 UTC) #12
jennyz
lgtm
5 years, 8 months ago (2015-04-03 18:14:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1003393002/80001
5 years, 8 months ago (2015-04-03 18:40:15 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-03 19:45:56 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:40:12 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/740ee2670a9303bf17cff1cec762cb429c4041a4
Cr-Commit-Position: refs/heads/master@{#323797}

Powered by Google App Engine
This is Rietveld 408576698