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

Issue 118463002: Sync removal of Default apps. (Closed)

Created:
7 years ago by stevenjb
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tim+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, tfarina, haitaol+watch_chromium.org, chromium-apps-reviews_chromium.org, rsimha+watch_chromium.org, maniscalco+watch_chromium.org, tapted
Visibility:
Public.

Description

Sync removal of Default apps. This CL implements TYPE_REMOVE_DEFAULT_APP. It also includes a fair bit of cleanup of AppListSyncableService, which on the one hand I apologize for, but on the other hand I think the result is more straightforward. BUG=258758 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244846

Patch Set 1 #

Total comments: 14

Patch Set 2 : Don't delete item from model before uninstalling. #

Patch Set 3 : Store ExtensionService* in AppListSyncableService #

Total comments: 6

Patch Set 4 : BuildModel immediately if extension_service is NULL #

Patch Set 5 : Don't BuildModel() if no extension service. #

Total comments: 8

Patch Set 6 : Pass extension_system to AppListSyncableService() #

Patch Set 7 : Add clarifying sync comments #

Patch Set 8 : Rebase #

Total comments: 2

Patch Set 9 : Clean up RemoveItem for Default items #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -148 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_app_list_helper.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc View 1 2 2 chunks +71 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.h View 1 2 3 4 5 6 7 5 chunks +25 lines, -25 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 2 3 4 5 6 7 8 9 15 chunks +222 lines, -109 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
stevenjb
7 years ago (2013-12-18 19:38:19 UTC) #1
xiyuan
LGTM https://codereview.chromium.org/118463002/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/118463002/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode462 chrome/browser/ui/app_list/app_list_syncable_service.cc:462: model_->item_list()->DeleteItem(sync_item->item_id); Do we need to explicitly delete here? ...
7 years ago (2013-12-19 00:28:33 UTC) #2
stevenjb
https://codereview.chromium.org/118463002/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/118463002/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode462 chrome/browser/ui/app_list/app_list_syncable_service.cc:462: model_->item_list()->DeleteItem(sync_item->item_id); On 2013/12/19 00:28:34, xiyuan wrote: > Do we ...
7 years ago (2013-12-19 01:12:01 UTC) #3
tapted
https://codereview.chromium.org/118463002/diff/1/chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc File chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc (right): https://codereview.chromium.org/118463002/diff/1/chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc#newcode45 chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc:45: nit: remove extra blank line https://codereview.chromium.org/118463002/diff/1/chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc#newcode427 chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc:427: int default_app_index ...
7 years ago (2013-12-19 01:20:57 UTC) #4
stevenjb
https://codereview.chromium.org/118463002/diff/1/chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc File chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc (right): https://codereview.chromium.org/118463002/diff/1/chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc#newcode45 chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc:45: On 2013/12/19 01:20:57, tapted wrote: > nit: remove extra ...
7 years ago (2013-12-19 01:48:44 UTC) #5
tapted
https://codereview.chromium.org/118463002/diff/1/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc File chrome/browser/ui/app_list/app_list_syncable_service_factory.cc (right): https://codereview.chromium.org/118463002/diff/1/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc#newcode43 chrome/browser/ui/app_list/app_list_syncable_service_factory.cc:43: return new AppListSyncableService(profile); On 2013/12/19 01:48:44, stevenjb wrote: > ...
7 years ago (2013-12-19 02:18:01 UTC) #6
stevenjb
The reason I decided to cache the ExtensionService* is that it makes it clear that ...
7 years ago (2013-12-19 18:13:03 UTC) #7
tapted
On 2013/12/19 18:13:03, stevenjb wrote: > The reason I decided to cache the ExtensionService* is ...
7 years ago (2013-12-20 02:18:16 UTC) #8
tapted
+benwells / -tapted I'm officially on leave for two weeks, so I'm subbing in Ben ...
7 years ago (2013-12-20 02:29:06 UTC) #9
Nicolas Zea
https://codereview.chromium.org/118463002/diff/110001/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/118463002/diff/110001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode216 chrome/browser/ui/app_list/app_list_syncable_service.cc:216: // Otherwise, delete the REMOVE_DEFAULT entry. I'm not sure ...
7 years ago (2013-12-20 20:44:30 UTC) #10
stevenjb
On 2013/12/20 02:18:16, tapted wrote: > On 2013/12/19 18:13:03, stevenjb wrote: > > The reason ...
7 years ago (2013-12-20 20:56:06 UTC) #11
stevenjb
https://codereview.chromium.org/118463002/diff/40001/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/118463002/diff/40001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode167 chrome/browser/ui/app_list/app_list_syncable_service.cc:167: BuildModel(); On 2013/12/20 02:18:17, tapted wrote: > On 2013/12/19 ...
7 years ago (2013-12-20 21:05:55 UTC) #12
Nicolas Zea
https://codereview.chromium.org/118463002/diff/110001/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/118463002/diff/110001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode276 chrome/browser/ui/app_list/app_list_syncable_service.cc:276: FROM_HERE, syncer::SyncChangeList(1, sync_change)); On 2013/12/20 21:05:56, stevenjb wrote: > ...
6 years, 11 months ago (2013-12-30 19:48:59 UTC) #13
stevenjb
PTAL https://codereview.chromium.org/118463002/diff/110001/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/118463002/diff/110001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode276 chrome/browser/ui/app_list/app_list_syncable_service.cc:276: FROM_HERE, syncer::SyncChangeList(1, sync_change)); On 2013/12/30 19:49:00, Nicolas Zea ...
6 years, 11 months ago (2014-01-02 21:15:48 UTC) #14
Nicolas Zea
Sorry for the delay, LGTM!
6 years, 11 months ago (2014-01-09 00:42:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/118463002/530001
6 years, 11 months ago (2014-01-14 18:54:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/118463002/530001
6 years, 11 months ago (2014-01-14 22:55:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/118463002/530001
6 years, 11 months ago (2014-01-15 01:25:30 UTC) #18
commit-bot: I haz the power
Change committed as 244846
6 years, 11 months ago (2014-01-15 08:24:23 UTC) #19
tapted
https://codereview.chromium.org/118463002/diff/40001/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/118463002/diff/40001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode167 chrome/browser/ui/app_list/app_list_syncable_service.cc:167: BuildModel(); On 2013/12/19 02:18:02, tapted wrote: > If you ...
6 years, 11 months ago (2014-01-16 07:03:27 UTC) #20
stevenjb
6 years, 11 months ago (2014-01-18 00:09:54 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/118463002/diff/40001/chrome/browser/ui/app_li...
File chrome/browser/ui/app_list/app_list_syncable_service.cc (right):

https://codereview.chromium.org/118463002/diff/40001/chrome/browser/ui/app_li...
chrome/browser/ui/app_list/app_list_syncable_service.cc:167: BuildModel();
On 2014/01/16 07:03:28, tapted wrote:
> On 2013/12/19 02:18:02, tapted wrote:
> > If you go with the cached |extension_service|, I think you'll need a to
> re-fetch
> > it here, now we know it's non-NULL with
> > extensions::ExtensionSystem::Get(profile)->extension_service();
> 
> I haven't looked in-depth, but addressing this might fix
http://crbug.com/334963

Hmm. I had intended to address this but I guess that change got lost in  the
Holidaze. I will investigate further and test with multi-profile. Thanks for the
reminder!

Powered by Google App Engine
This is Rietveld 408576698