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

Issue 1304933010: [Sync] Move data type logic from PSSA to PSS. (Closed)

Created:
5 years, 3 months ago by maxbogue
Modified:
5 years, 3 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, plaree+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] Move data type logic from PSSA to PSS. Now PSS::OnUserChoseDatatypes filters to only user selectable types, and GetPreferredDataTypes() will always include the control types. BUG=497518 Committed: https://crrev.com/0f5131e4f6ae03647aae0cac8154bf888b844e95 Cr-Commit-Position: refs/heads/master@{#350230}

Patch Set 1 #

Patch Set 2 : Fix build. #

Total comments: 2

Patch Set 3 : Change to a DCHECK. #

Patch Set 4 : Revert DCHECK change. #

Patch Set 5 : DCHECK with fixed tests. #

Patch Set 6 : Update OnUserChoseDatatypes() comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -17 lines) Patch
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_android.cc View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/enable_disable_test.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/profile_sync_service_harness.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync_driver/sync_service.h View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
maxbogue
Nicolas, PTAL; this is the change we discussed Monday.
5 years, 3 months ago (2015-09-16 17:34:04 UTC) #1
maxbogue
5 years, 3 months ago (2015-09-16 18:39:53 UTC) #3
Nicolas Zea
https://codereview.chromium.org/1304933010/diff/20001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/1304933010/diff/20001/chrome/browser/sync/profile_sync_service.cc#newcode1815 chrome/browser/sync/profile_sync_service.cc:1815: chosen_types.RetainAll(syncer::UserSelectableTypes()); Should this be a DCHECK I wonder? If ...
5 years, 3 months ago (2015-09-16 21:30:26 UTC) #4
maxbogue
https://codereview.chromium.org/1304933010/diff/20001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/1304933010/diff/20001/chrome/browser/sync/profile_sync_service.cc#newcode1815 chrome/browser/sync/profile_sync_service.cc:1815: chosen_types.RetainAll(syncer::UserSelectableTypes()); On 2015/09/16 21:30:25, Nicolas Zea wrote: > Should ...
5 years, 3 months ago (2015-09-18 23:47:52 UTC) #5
Nicolas Zea
On 2015/09/18 23:47:52, maxbogue wrote: > https://codereview.chromium.org/1304933010/diff/20001/chrome/browser/sync/profile_sync_service.cc > File chrome/browser/sync/profile_sync_service.cc (right): > > https://codereview.chromium.org/1304933010/diff/20001/chrome/browser/sync/profile_sync_service.cc#newcode1815 > ...
5 years, 3 months ago (2015-09-19 00:02:13 UTC) #6
maxbogue
Ok, got the DCHECK working and tests all green! PTAL!
5 years, 3 months ago (2015-09-22 17:17:30 UTC) #7
Nicolas Zea
LGTM
5 years, 3 months ago (2015-09-22 20:29:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304933010/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304933010/100001
5 years, 3 months ago (2015-09-22 20:50:18 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-22 21:16:24 UTC) #11
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/0f5131e4f6ae03647aae0cac8154bf888b844e95 Cr-Commit-Position: refs/heads/master@{#350230}
5 years, 3 months ago (2015-09-22 21:52:52 UTC) #12
jbudorick
5 years, 3 months ago (2015-09-23 03:57:57 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1363803002/ by jbudorick@chromium.org.

The reason for reverting is: broke sync instrumentation tests:
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/22408.

Powered by Google App Engine
This is Rietveld 408576698