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

Issue 2295343002: arc: Dont sync app list change caused by Arc opt out. (Closed)

Created:
4 years, 3 months ago by khmel
Modified:
4 years, 3 months ago
Reviewers:
xiyuan, stevenjb
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, extensions-reviews_chromium.org, sadrul, Matt Giuca, tfarina, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, kalyank, chromium-apps-reviews_chromium.org, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Dont sync app list change caused by Arc opt out. Arc Opt out was recently changed and it is now local change. This causes the problem with syncing app list info because Arc apps are removed from local app list model, shelf and these changes are sent to sync. As result, if user runs another Arc device, Arc apps there will be removed from app list and pin. Solution is not to sync changes, caused by Arc opt out. TEST=Manually on device, opt out Arc on one device and Arc apps are not removed from shelf and app list on another running device. Re-enable Arc again and Arc apps are restrored at the same positions in shelf and App list. TEST=Extended and updated unit_tests BUG=b/31163918 BUG=642864 Committed: https://crrev.com/c9726f4e10331b7c91542b3e35b22a2c483fd758 Cr-Commit-Position: refs/heads/master@{#416043}

Patch Set 1 #

Total comments: 17

Patch Set 2 : rebased, comments addressed, browser_tests updated #

Total comments: 1

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -34 lines) Patch
M chrome/browser/ui/app_list/app_list_model_builder.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_model_builder.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_model_builder.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 4 chunks +17 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 15 chunks +70 lines, -21 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
khmel
Hi Steven and Xiyuan, PTAL https://codereview.chromium.org/2295343002/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/2295343002/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode224 chrome/browser/ui/app_list/app_list_syncable_service.cc:224: if (item->GetItemType() == ArcAppItem::kItemType) ...
4 years, 3 months ago (2016-08-31 20:31:48 UTC) #2
stevenjb
https://codereview.chromium.org/2295343002/diff/1/chrome/browser/ui/app_list/app_list_model_builder.h File chrome/browser/ui/app_list/app_list_model_builder.h (right): https://codereview.chromium.org/2295343002/diff/1/chrome/browser/ui/app_list/app_list_model_builder.h#newcode52 chrome/browser/ui/app_list/app_list_model_builder.h:52: // Removes an app based on app id. We ...
4 years, 3 months ago (2016-08-31 21:10:49 UTC) #3
xiyuan
https://codereview.chromium.org/2295343002/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/2295343002/diff/1/chrome/browser/ui/app_list/app_list_syncable_service.cc#newcode224 chrome/browser/ui/app_list/app_list_syncable_service.cc:224: if (item->GetItemType() == ArcAppItem::kItemType) { nit: fix indent
4 years, 3 months ago (2016-08-31 21:43:09 UTC) #4
khmel
Thanks for your comments! PTAL https://codereview.chromium.org/2295343002/diff/1/chrome/browser/ui/app_list/app_list_model_builder.h File chrome/browser/ui/app_list/app_list_model_builder.h (right): https://codereview.chromium.org/2295343002/diff/1/chrome/browser/ui/app_list/app_list_model_builder.h#newcode52 chrome/browser/ui/app_list/app_list_model_builder.h:52: // Removes an app ...
4 years, 3 months ago (2016-09-01 00:03:03 UTC) #5
stevenjb
lgtm w/ minor change https://codereview.chromium.org/2295343002/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h (right): https://codereview.chromium.org/2295343002/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h#newcode214 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h:214: void DoUnpinAppWithID(const std::string& app_id, bool ...
4 years, 3 months ago (2016-09-01 16:01:07 UTC) #6
xiyuan
lgtm
4 years, 3 months ago (2016-09-01 18:06:48 UTC) #7
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/2295343002/40001
4 years, 3 months ago (2016-09-01 20:03:39 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-01 20:48:09 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 20:55:55 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c9726f4e10331b7c91542b3e35b22a2c483fd758
Cr-Commit-Position: refs/heads/master@{#416043}

Powered by Google App Engine
This is Rietveld 408576698