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

Issue 2055553004: arc: Support pinned apps across Arc-enabled and Arc-disabled platforms. (Closed)

Created:
4 years, 6 months ago by khmel
Modified:
4 years, 6 months ago
CC:
chromium-reviews, tapted, sadrul, Matt Giuca, tfarina, albertb+watch_chromium.org, kalyank, sync-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Support pinned apps across Arc-enabled and Arc-disabled platforms. This enables to work on different platforms and and have persistence Arc app pins on Arc-enabled platforms. BUG=604871 BUG=b/28017712 TEST=refactored and extended unit_tests passes TEST=Manually on devices. Worked on 2 devices. One has Arc onboard and second does not. Pin/Unpin/Change pin order for Arc and legacy apps. Changes on one device reflected on another and order of legacy app is kept on both. Order of mix of legacy and arc apps is kept on Arc enabled device. Committed: https://crrev.com/3b43aaa3b74115c142a51d7e16409bb2d9abafa8 Cr-Commit-Position: refs/heads/master@{#400876}

Patch Set 1 #

Total comments: 3

Patch Set 2 : cleanup and update #

Total comments: 39

Patch Set 3 : rebased, comments addressed, removed item_pinned_by_policy #

Total comments: 34

Patch Set 4 : rebased, comments addressed, add policy pins movable, add and extends unit tests #

Total comments: 6

Patch Set 5 : comments addressed, fix ImportLegacyPin #

Total comments: 3

Patch Set 6 : proto_value_conversions.cc updated #

Patch Set 7 : rebased #

Patch Set 8 : browser_tests compilation fix #

Patch Set 9 : chrome_mash_shelf_controller.cc update due namespace renaming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1108 lines, -626 lines) Patch
M chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.h View 1 2 7 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 2 3 4 8 chunks +54 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service_factory.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service_factory.cc View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.h View 1 2 3 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 3 4 7 chunks +343 lines, -75 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 3 4 5 6 9 chunks +18 lines, -27 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 5 6 28 chunks +126 lines, -280 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 34 chunks +482 lines, -211 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_controller_helper.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/protocol/app_list_specifics.proto View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 47 (16 generated)
khmel
Hi Xiyuan and Stefan, As discussed our pin model has to be based on sync ...
4 years, 6 months ago (2016-06-09 21:40:22 UTC) #2
xiyuan
+stevenjb original author of AppListSyncableService
4 years, 6 months ago (2016-06-09 21:51:23 UTC) #4
stevenjb
Is there a crbug.com issue tracking this? This is a chrome change and not Arc ...
4 years, 6 months ago (2016-06-10 17:09:16 UTC) #5
khmel
On 2016/06/10 17:09:16, stevenjb wrote: > Is there a http://crbug.com issue tracking this? This is ...
4 years, 6 months ago (2016-06-10 17:15:35 UTC) #7
stevenjb
Thanks for taking this on. I only looked closely at the app_list_syncable_service changes and some ...
4 years, 6 months ago (2016-06-10 18:00:41 UTC) #8
khmel
Hi Steven, Thanks a lot for your comments. I've updated the code. So based on ...
4 years, 6 months ago (2016-06-10 22:08:11 UTC) #9
khmel
Hi, Gentle ping, Do we have any stopper not to review it? PTAL
4 years, 6 months ago (2016-06-14 15:44:44 UTC) #10
xiyuan
https://codereview.chromium.org/2055553004/diff/40001/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/2055553004/diff/40001/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc#newcode29 chrome/browser/ui/app_list/app_list_syncable_service_factory.cc:29: bool used_in_testing = false; nit: used_in_testing -> use_in_testing to ...
4 years, 6 months ago (2016-06-14 21:42:51 UTC) #11
stevenjb
This looks pretty close. Just one subtle sync issue, and one suggestion: allow policy pinned ...
4 years, 6 months ago (2016-06-14 22:44:09 UTC) #12
khmel
Hi Steven and Xiyaun, Thanks for your comment. I updated CL: Rebased (uff). Nits and ...
4 years, 6 months ago (2016-06-15 17:01:21 UTC) #13
xiyuan
lgtm Thank you for taking on this. https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode248 chrome/browser/ui/ash/chrome_launcher_prefs.cc:248: DISALLOW_COPY_AND_ASSIGN(AppList); Why ...
4 years, 6 months ago (2016-06-15 17:26:25 UTC) #14
khmel
https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode248 chrome/browser/ui/ash/chrome_launcher_prefs.cc:248: DISALLOW_COPY_AND_ASSIGN(AppList); On 2016/06/15 17:26:25, xiyuan wrote: > Why removing ...
4 years, 6 months ago (2016-06-15 17:29:14 UTC) #15
xiyuan
https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode248 chrome/browser/ui/ash/chrome_launcher_prefs.cc:248: DISALLOW_COPY_AND_ASSIGN(AppList); On 2016/06/15 17:29:14, khmel wrote: > On 2016/06/15 ...
4 years, 6 months ago (2016-06-15 17:30:22 UTC) #16
stevenjb
Looking great, thanks! Just a couple small comments. https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode248 chrome/browser/ui/ash/chrome_launcher_prefs.cc:248: DISALLOW_COPY_AND_ASSIGN(AppList); ...
4 years, 6 months ago (2016-06-15 17:53:52 UTC) #17
khmel
PTAL https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2055553004/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode248 chrome/browser/ui/ash/chrome_launcher_prefs.cc:248: DISALLOW_COPY_AND_ASSIGN(AppList); On 2016/06/15 17:53:52, stevenjb wrote: > On ...
4 years, 6 months ago (2016-06-15 18:26:23 UTC) #18
stevenjb
LGTM !
4 years, 6 months ago (2016-06-15 18:33:39 UTC) #19
Mr4D (OOO till 08-26)
LGTM! And many thanks for all your work on this!
4 years, 6 months ago (2016-06-15 19:01:45 UTC) #20
khmel
Hi, Thanks a lot for your reviews and discussions! Adding zea@chromium.org (sync/protocol/app_list_specifics.proto) pam@chromium.org (chrome/browser/prefs/browser_prefs.cc) PTAL
4 years, 6 months ago (2016-06-15 19:20:54 UTC) #22
khmel
PTAL
4 years, 6 months ago (2016-06-15 19:21:49 UTC) #24
Nicolas Zea
https://codereview.chromium.org/2055553004/diff/80001/sync/protocol/app_list_specifics.proto File sync/protocol/app_list_specifics.proto (right): https://codereview.chromium.org/2055553004/diff/80001/sync/protocol/app_list_specifics.proto#newcode52 sync/protocol/app_list_specifics.proto:52: optional string item_pin_ordinal = 7; Could you update proto_value_conversions.cc ...
4 years, 6 months ago (2016-06-15 20:56:41 UTC) #25
khmel
Thanks Nicolas for comments. PTAL https://codereview.chromium.org/2055553004/diff/80001/sync/protocol/app_list_specifics.proto File sync/protocol/app_list_specifics.proto (right): https://codereview.chromium.org/2055553004/diff/80001/sync/protocol/app_list_specifics.proto#newcode52 sync/protocol/app_list_specifics.proto:52: optional string item_pin_ordinal = ...
4 years, 6 months ago (2016-06-15 21:05:14 UTC) #26
Nicolas Zea
sync lgtm
4 years, 6 months ago (2016-06-20 07:16:19 UTC) #27
khmel
Thanks Nicolas for review. Scott, could you please review trivial change in chrome/browser/prefs/browser_prefs.cc PTAL
4 years, 6 months ago (2016-06-20 15:49:05 UTC) #29
sky
LGTM
4 years, 6 months ago (2016-06-20 19:16:51 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2055553004/120001
4 years, 6 months ago (2016-06-20 20:41:03 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/188431)
4 years, 6 months ago (2016-06-20 20:57:52 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2055553004/140001
4 years, 6 months ago (2016-06-20 22:58:16 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/155542)
4 years, 6 months ago (2016-06-20 23:13:29 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2055553004/160001
4 years, 6 months ago (2016-06-21 01:41:37 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-21 02:40:04 UTC) #45
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 02:41:53 UTC) #47
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3b43aaa3b74115c142a51d7e16409bb2d9abafa8
Cr-Commit-Position: refs/heads/master@{#400876}

Powered by Google App Engine
This is Rietveld 408576698