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

Issue 148403007: Protect AppListItemList Add/Remove and fix sync bugs (Closed)

Created:
6 years, 10 months ago by stevenjb
Modified:
6 years, 10 months ago
CC:
chromium-reviews, tim+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, sadrul, extensions-reviews_chromium.org, tfarina, haitaol+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, rsimha+watch_chromium.org, ben+ash_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Protect AppListItemList Add/Remove and fix sync bugs This should fixe the issues seen in the bug, and includes some cleanup in prep for syncing folders. BUG=338520 TBR=jamescook@chromium.org for ash_shell.cc Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247565

Patch Set 1 #

Patch Set 2 : . #

Total comments: 28

Patch Set 3 : Address feedback #

Patch Set 4 : Remove / add observer while reciving incoming sync changes. #

Patch Set 5 : . #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -342 lines) Patch
M ash/shell/app_list.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_app_list_helper.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_app_list_helper.cc View 1 2 4 chunks +38 lines, -12 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.h View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 2 3 4 17 chunks +47 lines, -35 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.cc View 1 2 6 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder_unittest.cc View 4 chunks +16 lines, -7 lines 0 comments Download
M chrome/browser/ui/app_list/fast_show_pickler.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/test/fast_show_pickler_unittest.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M ui/app_list/app_list_folder_item.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/app_list/app_list_folder_item.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/app_list/app_list_item.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M ui/app_list/app_list_item.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/app_list_item_list.h View 1 2 2 chunks +24 lines, -26 lines 0 comments Download
M ui/app_list/app_list_item_list.cc View 2 chunks +38 lines, -74 lines 0 comments Download
M ui/app_list/app_list_item_list_observer.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/app_list_item_list_unittest.cc View 3 chunks +11 lines, -57 lines 0 comments Download
M ui/app_list/app_list_model.h View 1 2 3 chunks +41 lines, -2 lines 0 comments Download
M ui/app_list/app_list_model.cc View 1 3 chunks +95 lines, -0 lines 0 comments Download
M ui/app_list/app_list_model_observer.h View 1 chunk +11 lines, -0 lines 0 comments Download
M ui/app_list/app_list_model_unittest.cc View 1 2 12 chunks +21 lines, -42 lines 0 comments Download
M ui/app_list/app_list_switches.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/cocoa/apps_grid_controller_unittest.mm View 5 chunks +10 lines, -8 lines 1 comment Download
M ui/app_list/test/app_list_test_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/apps_grid_view.cc View 1 2 2 chunks +18 lines, -48 lines 2 comments Download
M ui/app_list/views/apps_grid_view_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
stevenjb
OK, this should be a bit simpler than the complete folder sync CL and includes ...
6 years, 10 months ago (2014-01-28 01:12:53 UTC) #1
xiyuan
Mostly nits. https://codereview.chromium.org/148403007/diff/20001/chrome/browser/sync/test/integration/sync_app_list_helper.cc File chrome/browser/sync/test/integration/sync_app_list_helper.cc (right): https://codereview.chromium.org/148403007/diff/20001/chrome/browser/sync/test/integration/sync_app_list_helper.cc#newcode158 chrome/browser/sync/test/integration/sync_app_list_helper.cc:158: std::string label = |label| is used for ...
6 years, 10 months ago (2014-01-28 05:58:28 UTC) #2
tapted
Started skimming towards the end, since I think xiyuan and I were working in parallel. ...
6 years, 10 months ago (2014-01-28 11:56:52 UTC) #3
jennyz
lgtm with nit. https://codereview.chromium.org/148403007/diff/20001/chrome/browser/ui/app_list/extension_app_model_builder.cc File chrome/browser/ui/app_list/extension_app_model_builder.cc (left): https://codereview.chromium.org/148403007/diff/20001/chrome/browser/ui/app_list/extension_app_model_builder.cc#oldcode196 chrome/browser/ui/app_list/extension_app_model_builder.cc:196: Is the model_ empty, or we ...
6 years, 10 months ago (2014-01-28 18:02:47 UTC) #4
stevenjb
Please let me know if you'd prefer to reset / construct ModelObserver in lieu of ...
6 years, 10 months ago (2014-01-28 18:28:06 UTC) #5
stevenjb
Please let me know if you'd prefer to reset / construct ModelObserver in lieu of ...
6 years, 10 months ago (2014-01-28 18:28:07 UTC) #6
xiyuan
LGTM I am slightly preferred to do the RemoveObserver/AddObserver business but don't feel strongly about ...
6 years, 10 months ago (2014-01-28 18:50:25 UTC) #7
stevenjb
I went ahead and made the change to add / remove the model observer.
6 years, 10 months ago (2014-01-28 19:34:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/148403007/80001
6 years, 10 months ago (2014-01-28 19:37:21 UTC) #9
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=46824
6 years, 10 months ago (2014-01-28 19:55:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/148403007/80001
6 years, 10 months ago (2014-01-28 20:01:49 UTC) #11
tapted
On 2014/01/28 11:56:52, tapted wrote: > Also there seems to be a bit more going ...
6 years, 10 months ago (2014-01-28 22:37:05 UTC) #12
stevenjb
On 2014/01/28 22:37:05, tapted wrote: > On 2014/01/28 11:56:52, tapted wrote: > > Also there ...
6 years, 10 months ago (2014-01-28 22:47:59 UTC) #13
benwells
On 2014/01/28 22:47:59, stevenjb wrote: > On 2014/01/28 22:37:05, tapted wrote: > > On 2014/01/28 ...
6 years, 10 months ago (2014-01-28 23:09:00 UTC) #14
stevenjb
My apologies, I will be more careful in the future. On Tue, Jan 28, 2014 ...
6 years, 10 months ago (2014-01-28 23:26:41 UTC) #15
tapted
lgtm in the interests of not booting you out of the queue (although CQ would ...
6 years, 10 months ago (2014-01-28 23:33:53 UTC) #16
stevenjb
https://codereview.chromium.org/148403007/diff/20001/ui/app_list/app_list_model.h File ui/app_list/app_list_model.h (right): https://codereview.chromium.org/148403007/diff/20001/ui/app_list/app_list_model.h#newcode54 ui/app_list/app_list_model.h:54: void AddItem(AppListItem* item); On 2014/01/28 23:33:54, tapted wrote: > ...
6 years, 10 months ago (2014-01-29 00:11:30 UTC) #17
commit-bot: I haz the power
6 years, 10 months ago (2014-01-29 01:23:02 UTC) #18
Message was sent while issue was closed.
Change committed as 247565

Powered by Google App Engine
This is Rietveld 408576698