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

Issue 981893002: Lazily build the app list model. (Closed)

Created:
5 years, 9 months ago by calamity
Modified:
5 years, 8 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org, zea+watch_chromium.org, tfarina, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@fix_set_enabled
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Lazily build the app list model. This CL makes the AppListSyncableService build the app list model when it is requested instead of building it when the extensions system is ready. This fixes an issue where the sync system was being brought up by the app list on Chrome launch, likely causing startup slowdown. BUG=462429 Committed: https://crrev.com/acd0831886805f0d3027dc75ba5bf38867b929c0 Cr-Commit-Position: refs/heads/master@{#322731}

Patch Set 1 : #

Total comments: 16

Patch Set 2 : address comments #

Total comments: 5

Patch Set 3 : rebase, address comments #

Patch Set 4 : revert ALSL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -73 lines) Patch
M chrome/browser/extensions/api/launcher_page/launcher_page_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_app_list_helper.cc View 5 chunks +23 lines, -22 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.h View 5 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 2 10 chunks +23 lines, -29 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/test/chrome_app_list_test_support.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (18 generated)
calamity
https://codereview.chromium.org/981893002/diff/40001/chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc File chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc (right): https://codereview.chromium.org/981893002/diff/40001/chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc#newcode100 chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc:100: AppListServiceLinux::GetInstance()->Init(initial_profile); This is necessary to fix a test. There's ...
5 years, 9 months ago (2015-03-10 06:18:51 UTC) #4
tapted
Adding stevenjb, since he's the most familiar with this code. Some questions - sync isn't ...
5 years, 9 months ago (2015-03-10 19:19:55 UTC) #6
stevenjb
This lgtm, but we'll want to test on Chrome OS to ensure that this doesn't ...
5 years, 9 months ago (2015-03-10 19:56:07 UTC) #7
Nicolas Zea
https://codereview.chromium.org/981893002/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/981893002/diff/40001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode473 chrome/browser/ui/app_list/app_list_syncable_service.cc:473: model_->DeleteItem(id); On 2015/03/10 19:56:06, stevenjb wrote: > On 2015/03/10 ...
5 years, 9 months ago (2015-03-12 18:09:00 UTC) #9
calamity
https://codereview.chromium.org/981893002/diff/40001/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/981893002/diff/40001/chrome/browser/ui/app_list/app_list_syncable_service.cc#oldcode251 chrome/browser/ui/app_list/app_list_syncable_service.cc:251: if (extension_system->extension_service() && On 2015/03/10 19:56:06, stevenjb wrote: > ...
5 years, 9 months ago (2015-03-12 21:23:22 UTC) #10
Nicolas Zea
https://codereview.chromium.org/981893002/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/981893002/diff/40001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode473 chrome/browser/ui/app_list/app_list_syncable_service.cc:473: model_->DeleteItem(id); On 2015/03/12 21:23:22, calamity wrote: > Hmm. I ...
5 years, 9 months ago (2015-03-12 21:28:05 UTC) #11
calamity
I kicked the tires, everything seems to work fine.
5 years, 9 months ago (2015-03-20 02:11:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981893002/60001
5 years, 9 months ago (2015-03-20 03:05:50 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/50964)
5 years, 9 months ago (2015-03-20 03:11:28 UTC) #19
tapted
https://codereview.chromium.org/981893002/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/981893002/diff/40001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode473 chrome/browser/ui/app_list/app_list_syncable_service.cc:473: model_->DeleteItem(id); On 2015/03/12 21:23:22, calamity wrote: > Hmm. I ...
5 years, 9 months ago (2015-03-20 11:47:15 UTC) #20
calamity
https://codereview.chromium.org/981893002/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/981893002/diff/40001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode473 chrome/browser/ui/app_list/app_list_syncable_service.cc:473: model_->DeleteItem(id); On 2015/03/20 11:47:14, tapted (travelling) wrote: > On ...
5 years, 9 months ago (2015-03-23 05:14:49 UTC) #21
tapted
https://codereview.chromium.org/981893002/diff/60001/chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc File chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc (right): https://codereview.chromium.org/981893002/diff/60001/chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc#newcode100 chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc:100: AppListServiceLinux::GetInstance()->Init(initial_profile); On 2015/03/23 05:14:49, calamity wrote: > On 2015/03/20 ...
5 years, 9 months ago (2015-03-26 18:57:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981893002/80001
5 years, 9 months ago (2015-03-27 03:51:25 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/52277)
5 years, 9 months ago (2015-03-27 03:57:02 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981893002/120001
5 years, 9 months ago (2015-03-27 05:08:46 UTC) #31
calamity
zea@ can you PTAL at c/b/sync? Thanks.
5 years, 9 months ago (2015-03-27 05:09:15 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/52284)
5 years, 9 months ago (2015-03-27 05:15:02 UTC) #34
Nicolas Zea
sync LGTM (in the future, it's okay to TBR for this kind of renaming of ...
5 years, 9 months ago (2015-03-27 20:24:04 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981893002/120001
5 years, 8 months ago (2015-03-30 01:49:50 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:120001)
5 years, 8 months ago (2015-03-30 02:52:28 UTC) #38
commit-bot: I haz the power
5 years, 8 months ago (2015-03-30 02:53:15 UTC) #39
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/acd0831886805f0d3027dc75ba5bf38867b929c0
Cr-Commit-Position: refs/heads/master@{#322731}

Powered by Google App Engine
This is Rietveld 408576698