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

Issue 1024553010: [Sync] Add support for immediately enabling wallet datatype (Closed)

Created:
5 years, 9 months ago by Nicolas Zea
Modified:
5 years, 9 months ago
CC:
chromium-reviews, maniscalco+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, tim+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Add support for immediately enabling/disabling wallet datatype This patch modifies the wallet datatype to always have a datatype controller, and give that datatype controller the responsibility of enabling and disabling the datatype as necessary. If the sync experiment pref is disabled, the datatype will not start up, and if it's already started will turn itself off. Similarly, if the experiment is enabled, the datatype is capable of starting itself up. BUG=470362 Committed: https://crrev.com/e62811208dcf694cb28c24b87eda1570fb45a06e Cr-Commit-Position: refs/heads/master@{#322274}

Patch Set 1 #

Patch Set 2 : Fix up logic and add tests #

Patch Set 3 : Self review #

Patch Set 4 : Fix unit tests #

Total comments: 11

Patch Set 5 : Address comments #

Patch Set 6 : No really fix android? #

Patch Set 7 : Fix migration and android tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -72 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/autofill_wallet_data_type_controller.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc View 1 2 3 4 3 chunks +42 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 3 chunks +2 lines, -52 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_android.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 2 comments Download
M chrome/browser/sync/test/integration/migration_test.cc View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc View 1 2 3 chunks +114 lines, -2 lines 0 comments Download
M components/sync_driver/data_type_manager_impl.cc View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M sync/test/fake_server/unique_client_entity.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (6 generated)
Nicolas Zea
+Patrick for UniqueClientEntity change +Nick for everything else +Brett FYI, as this overlaps with what ...
5 years, 9 months ago (2015-03-25 00:02:34 UTC) #2
pval...(no longer on Chromium)
test/FakeServer change LGTM
5 years, 9 months ago (2015-03-25 00:09:10 UTC) #3
maniscalco
https://codereview.chromium.org/1024553010/diff/60001/chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc File chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc (right): https://codereview.chromium.org/1024553010/diff/60001/chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc#newcode34 chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc:34: pref_registrar_.Init(profile->GetPrefs()); We're on the UI thread here, right? How ...
5 years, 9 months ago (2015-03-25 00:31:48 UTC) #4
Nicolas Zea
PTAL https://codereview.chromium.org/1024553010/diff/60001/chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc File chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc (right): https://codereview.chromium.org/1024553010/diff/60001/chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc#newcode34 chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc:34: pref_registrar_.Init(profile->GetPrefs()); On 2015/03/25 00:31:47, maniscalco wrote: > We're ...
5 years, 9 months ago (2015-03-25 00:41:17 UTC) #5
maniscalco
LGTM https://codereview.chromium.org/1024553010/diff/60001/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/1024553010/diff/60001/components/sync_driver/data_type_manager_impl.cc#newcode264 components/sync_driver/data_type_manager_impl.cc:264: state_ = DOWNLOAD_PENDING; On 2015/03/25 00:41:17, Nicolas Zea ...
5 years, 9 months ago (2015-03-25 00:47:54 UTC) #6
Nicolas Zea
+Tommy for PSSAndroid changes
5 years, 9 months ago (2015-03-25 19:12:36 UTC) #10
brettw
I don't think you need my review for anything, but I looked briefly and LGTM. ...
5 years, 9 months ago (2015-03-25 19:34:37 UTC) #11
nyquist
lgtm https://codereview.chromium.org/1024553010/diff/160001/chrome/browser/sync/profile_sync_service_android.cc File chrome/browser/sync/profile_sync_service_android.cc (right): https://codereview.chromium.org/1024553010/diff/160001/chrome/browser/sync/profile_sync_service_android.cc#newcode67 chrome/browser/sync/profile_sync_service_android.cc:67: AUTOFILL_WALLET = 1 << 15, Any reason why ...
5 years, 9 months ago (2015-03-26 00:07:02 UTC) #12
Nicolas Zea
https://codereview.chromium.org/1024553010/diff/160001/chrome/browser/sync/profile_sync_service_android.cc File chrome/browser/sync/profile_sync_service_android.cc (right): https://codereview.chromium.org/1024553010/diff/160001/chrome/browser/sync/profile_sync_service_android.cc#newcode67 chrome/browser/sync/profile_sync_service_android.cc:67: AUTOFILL_WALLET = 1 << 15, On 2015/03/26 00:07:01, nyquist ...
5 years, 9 months ago (2015-03-26 00:09:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024553010/160001
5 years, 9 months ago (2015-03-26 00:10:46 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 9 months ago (2015-03-26 00:30:40 UTC) #17
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 00:31:23 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e62811208dcf694cb28c24b87eda1570fb45a06e
Cr-Commit-Position: refs/heads/master@{#322274}

Powered by Google App Engine
This is Rietveld 408576698