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

Issue 2277593002: arc: Enable user control for Arc package sync. (Closed)

Created:
4 years, 4 months ago by lgcheng
Modified:
4 years, 3 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, tfarina, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, sync-reviews_chromium.org, Matt Giuca
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Enable user control for Arc package sync. Current Arc package sync implemetation does not support stop sync and re-enable sync without rebooting. So user control of arc package sync is not achievable. This patch re-implement sync stop and enable proper user control of arc package sync using apps checkbox in advanced sync settings. BUG=641011 , http://b/31034323, http://b/30640291, http://b/30980543 TEST=Pass sync integration test. TEST=Manual test1. Turn on apps sync settings. Enable Arc and install package. Nuke Arc then enable arc. Package restored. TEST=Manual test2. Turn on apps sync settings. Enable Arc and install package. Turn off apps sync settings and then nuke Arc. Then enable arc. Package not restored. Then turn on apps sync settings. Package restored. Committed: https://crrev.com/9b98997de0b7f4fa5054ac7c9cc5b5778a09e2c1 Cr-Commit-Position: refs/heads/master@{#414277}

Patch Set 1 #

Patch Set 2 : Enable user control for Arc package sync. #

Total comments: 6

Patch Set 3 : Enable user control for Arc package sync. #

Patch Set 4 #

Total comments: 12

Patch Set 5 : Issue and comment addressed. Run git cl format. #

Total comments: 2

Patch Set 6 : Enable user control for Arc package sync. #

Patch Set 7 : Rebase #

Patch Set 8 : Fix componets unit_tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -9 lines) Patch
M chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc View 1 2 3 4 5 2 chunks +55 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_package_syncable_service.cc View 1 2 3 4 5 6 2 chunks +9 lines, -2 lines 0 comments Download
M components/sync/driver/sync_prefs.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/driver/sync_prefs_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (25 generated)
lgcheng
Hi Josh, PTAL I fix three sync related issue in this CL as they share ...
4 years, 4 months ago (2016-08-24 16:25:10 UTC) #3
Josh Horwich
https://codereview.chromium.org/2277593002/diff/20001/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc File chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc (right): https://codereview.chromium.org/2277593002/diff/20001/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc#newcode948 chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc:948: // Start ArcPackageSyncService ASAP. Might be better to explain ...
4 years, 4 months ago (2016-08-24 18:02:17 UTC) #4
lgcheng
https://codereview.chromium.org/2277593002/diff/20001/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc File chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc (right): https://codereview.chromium.org/2277593002/diff/20001/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc#newcode948 chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc:948: // Start ArcPackageSyncService ASAP. On 2016/08/24 18:02:17, Josh Horwich ...
4 years, 4 months ago (2016-08-24 18:28:25 UTC) #6
lgcheng
Thanks Josh for comments. Hi Steven, Pavel PTAL at this patch. It implements recoverable stop ...
4 years, 4 months ago (2016-08-24 18:34:20 UTC) #8
pavely
lgtm % one comment. https://codereview.chromium.org/2277593002/diff/80001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc File chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc (right): https://codereview.chromium.org/2277593002/diff/80001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc#newcode62 chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc:62: if (profile_->GetPrefs()->GetBoolean(arc_package_sync_enable_pref_name_)) { I think ...
4 years, 4 months ago (2016-08-24 20:21:52 UTC) #9
stevenjb
https://codereview.chromium.org/2277593002/diff/80001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc File chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc (right): https://codereview.chromium.org/2277593002/diff/80001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc#newcode35 chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc:35: arc_user_enabled_pref_name_(prefs::kArcEnabled) { These char*'s never change, why store them ...
4 years, 4 months ago (2016-08-24 20:46:43 UTC) #10
lgcheng
Thanks for comment! Issue addressed and PTAL. https://codereview.chromium.org/2277593002/diff/80001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc File chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc (right): https://codereview.chromium.org/2277593002/diff/80001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc#newcode35 chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc:35: arc_user_enabled_pref_name_(prefs::kArcEnabled) { ...
4 years, 4 months ago (2016-08-24 21:29:03 UTC) #14
stevenjb
https://codereview.chromium.org/2277593002/diff/80001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc File chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc (right): https://codereview.chromium.org/2277593002/diff/80001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc#newcode65 chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc:65: sync_service->ReenableDatatype(type()); On 2016/08/24 21:29:03, lgcheng wrote: > On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 22:04:39 UTC) #16
lgcheng
Thank Steven for the explanation. Change the style accordingly. https://codereview.chromium.org/2277593002/diff/100001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc File chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc (right): https://codereview.chromium.org/2277593002/diff/100001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc#newcode53 chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc:53: ...
4 years, 4 months ago (2016-08-24 22:25:13 UTC) #17
stevenjb
lgtm
4 years, 4 months ago (2016-08-24 22:47:09 UTC) #18
lgcheng
On 2016/08/24 22:47:09, stevenjb wrote: > lgtm Thanks for review!
4 years, 4 months ago (2016-08-24 22:48:54 UTC) #20
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/2277593002/160001
4 years, 4 months ago (2016-08-25 02:45:29 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 4 months ago (2016-08-25 02:51:49 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-25 02:53:59 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9b98997de0b7f4fa5054ac7c9cc5b5778a09e2c1
Cr-Commit-Position: refs/heads/master@{#414277}

Powered by Google App Engine
This is Rietveld 408576698