commit | 1ac5ea94795ae669caea477a299e8db70722d77f | [log] [tgz] |
---|---|---|
author | khmel@chromium.org <khmel@chromium.org> | Wed Jan 09 01:06:59 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 09 01:06:59 2019 |
tree | e223b20c3a797440960b35ac709ee6bc19bdc6a5 | |
parent | 4ba3d240849dad673869122004a3923db48335a2 [diff] |
app_sync: Implement feature to transfer app attributes. This allows to transfer attributes (position, pin position and folder id) from one app to another app. This is to be used in case one app is migrating to another app and it is needed to preserve positions in shelf and app launcher. It is particular needed for migrating messages app. Usage example: app_list::AppListSyncableService const * app_service = app_list::AppListSyncableServiceFactory::GetForProfile(profile); app_service->TransferItemAttribute(kAppId1, kAppId2); BUG=TBD TEST=Manually for both modes. In one mode transfer attribute to the existing app and app immediately moved to the position in shelf and position and folder in App Launcher. Did the same but for non-existing app that was installed later. Unit test added. Change-Id: I00343e0acc0744b3f22bac0963f74cc14701e8fe Reviewed-on: https://chromium-review.googlesource.com/c/1396937 Commit-Queue: Yury Khmel <khmel@chromium.org> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by: Steven Bennetts <stevenjb@chromium.org> Cr-Commit-Position: refs/heads/master@{#620975}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .