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

Issue 2416133002: Implement local storage for App List in case app sync is off. (Closed)

Created:
4 years, 2 months ago by khmel
Modified:
4 years, 1 month ago
Reviewers:
maxbogue, stevenjb, calamity, sky
CC:
chromium-reviews, tfarina, sadrul, Matt Giuca, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement local storage for App List in case app sync is off. This CL keeps local copy of current app list service and in case app sync is off, date from local storage is used to init app list model. Once sync is resumed, local copy is overriden and information form sync is used. BUG=641535 TEST=Unit and sync tests added TEST=Manually on device. Committed: https://crrev.com/f06c029695e6d3a62ea950c1ba0f60cf01c353a8 Cr-Commit-Position: refs/heads/master@{#427390}

Patch Set 1 #

Total comments: 4

Patch Set 2 : "app sync service" based solution #

Patch Set 3 : cleanup #

Patch Set 4 : added extra sync test and rebased #

Total comments: 10

Patch Set 5 : comments addressed #

Total comments: 4

Patch Set 6 : refactore initialization #

Total comments: 4

Patch Set 7 : comments addressed, fix race conditions in tests #

Total comments: 5

Patch Set 8 : method renamed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -31 lines) Patch
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc View 1 2 3 4 5 6 3 chunks +117 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 6 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 2 3 4 5 6 7 24 chunks +150 lines, -28 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
khmel
Hi Steven, This is local pin model implementation for the case when sync is off ...
4 years, 2 months ago (2016-10-14 00:21:41 UTC) #2
stevenjb
Hmm. So we specifically didn't bother with this for AppList sync since it is such ...
4 years, 2 months ago (2016-10-14 20:27:25 UTC) #3
khmel
Thank you Steven for review, When I was implementing the first version I was thinking ...
4 years, 2 months ago (2016-10-17 21:10:57 UTC) #4
stevenjb
On 2016/10/17 21:10:57, khmel wrote: > Thank you Steven for review, > > When I ...
4 years, 2 months ago (2016-10-17 21:25:43 UTC) #5
khmel
On 2016/10/17 21:25:43, stevenjb wrote: > On 2016/10/17 21:10:57, khmel wrote: > > Thank you ...
4 years, 2 months ago (2016-10-17 21:40:14 UTC) #6
stevenjb
It's possible that AppListPrefs was never actually used? The initial CL description for the file ...
4 years, 2 months ago (2016-10-17 21:50:04 UTC) #8
khmel
Hi, CL that discards AppListPrefs was landed and I rebased this CL and added one ...
4 years, 2 months ago (2016-10-20 03:26:41 UTC) #10
stevenjb
https://codereview.chromium.org/2416133002/diff/60001/chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc File chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc (right): https://codereview.chromium.org/2416133002/diff/60001/chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc#newcode31 chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc:31: const app_list::AppListSyncableService* service2) { This doesn't seem to be ...
4 years, 2 months ago (2016-10-20 17:04:46 UTC) #11
khmel
Thank you for your comments. PTAL https://codereview.chromium.org/2416133002/diff/60001/chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc File chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc (right): https://codereview.chromium.org/2416133002/diff/60001/chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc#newcode31 chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc:31: const app_list::AppListSyncableService* service2) ...
4 years, 2 months ago (2016-10-20 18:00:06 UTC) #12
stevenjb
https://codereview.chromium.org/2416133002/diff/60001/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/2416133002/diff/60001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode399 chrome/browser/ui/app_list/app_list_syncable_service.cc:399: model_observer_.reset(new ModelObserver(this)); On 2016/10/20 18:00:06, khmel wrote: > On ...
4 years, 2 months ago (2016-10-21 20:03:10 UTC) #13
khmel
Thanks Steven for your comments. PTAL https://codereview.chromium.org/2416133002/diff/60001/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/2416133002/diff/60001/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode399 chrome/browser/ui/app_list/app_list_syncable_service.cc:399: model_observer_.reset(new ModelObserver(this)); On ...
4 years, 1 month ago (2016-10-24 17:28:39 UTC) #14
stevenjb
This looks much more clear, thanks, and welcome to the AppListSyncableService code :) LGTM
4 years, 1 month ago (2016-10-24 17:35:01 UTC) #15
khmel
Thank you :)! Adding sky@ to confirm c/b/prefs/browser_prefs.cc c/b/sync/test/integration/single_client_app_list_sync_test.cc PTAL
4 years, 1 month ago (2016-10-24 17:38:07 UTC) #17
sky
I'm not familiar with chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc . Please find a more local owner for that, randomly ...
4 years, 1 month ago (2016-10-24 19:10:46 UTC) #19
khmel
Thank you sky@ for review! to: maxbogue@ PTAL c/b/sync/test/integration/single_client_app_list_sync_test.cc Thank you!
4 years, 1 month ago (2016-10-24 19:16:43 UTC) #20
maxbogue
lgtm w/ a couple comments https://codereview.chromium.org/2416133002/diff/100001/chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc File chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc (right): https://codereview.chromium.org/2416133002/diff/100001/chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc#newcode53 chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc:53: class AppListSyncUpdateWaiter You may ...
4 years, 1 month ago (2016-10-24 19:36:50 UTC) #21
khmel
Thank you all for review! I passed tests with latest structure and found 2 minor ...
4 years, 1 month ago (2016-10-25 15:49:01 UTC) #22
stevenjb
lgtm w/ name change https://codereview.chromium.org/2416133002/diff/120001/chrome/browser/ui/app_list/app_list_syncable_service.h File chrome/browser/ui/app_list/app_list_syncable_service.h (right): https://codereview.chromium.org/2416133002/diff/120001/chrome/browser/ui/app_list/app_list_syncable_service.h#newcode125 chrome/browser/ui/app_list/app_list_syncable_service.h:125: bool IsInited() const; IsInitialized() https://codereview.chromium.org/2416133002/diff/120001/chrome/browser/ui/ash/chrome_launcher_prefs.cc ...
4 years, 1 month ago (2016-10-25 16:21:33 UTC) #23
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/2416133002/140001
4 years, 1 month ago (2016-10-25 16:27:57 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-10-25 17:24:31 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 17:37:02 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f06c029695e6d3a62ea950c1ba0f60cf01c353a8
Cr-Commit-Position: refs/heads/master@{#427390}

Powered by Google App Engine
This is Rietveld 408576698