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

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed)

Created:
9 years, 4 months ago by Nicolas Zea
Modified:
9 years, 4 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, cbentzel+watch_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, tim (not reviewing), akalin
Visibility:
Public.

Description

[Sync] Add support for enabling session sync remotely. A "sync_tabs" field has been added to the nigori node. When this field is set, and if the user has elected to keep everything synced, we automatically enable session sync for them. This is done by way of the migrator and does not require a restart of sync or user intervention. BUG=none TEST=sync_integration_tests --gtest_filter="*SetSyncTabs*" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98328

Patch Set 1 #

Patch Set 2 : Fix restart/resync cases and add proto conversion #

Patch Set 3 : Rebase #

Total comments: 10

Patch Set 4 : Refactor + address comments #

Total comments: 8

Patch Set 5 : comments #

Total comments: 8

Patch Set 6 : Comments + rebase #

Patch Set 7 : DOUBLE R..ebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -68 lines) Patch
M chrome/browser/sync/glue/data_type_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl.h View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl.cc View 1 2 3 7 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl_unittest.cc View 13 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 3 1 chunk +16 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_factory.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_factory_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_factory_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_factory_mock.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 7 chunks +94 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 2 3 1 chunk +13 lines, -4 lines 0 comments Download
M chrome/browser/sync/protocol/nigori_specifics.proto View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/protocol/proto_value_conversions.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/live_sync/live_sync_test.h View 1 2 3 4 5 4 chunks +19 lines, -9 lines 0 comments Download
M chrome/test/live_sync/live_sync_test.cc View 1 2 3 4 5 4 chunks +28 lines, -13 lines 0 comments Download
M chrome/test/live_sync/migration_errors_test.cc View 1 2 3 1 chunk +88 lines, -0 lines 0 comments Download
M net/tools/testserver/chromiumsync.py View 1 2 3 4 5 2 chunks +24 lines, -0 lines 0 comments Download
M net/tools/testserver/testserver.py View 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Nicolas Zea
Please take look! Tim, in particular I'm slightly concerned about the case where a legitimate ...
9 years, 4 months ago (2011-08-19 01:30:24 UTC) #1
Nicolas Zea
Just realized theres two cases I didn't cover: Restarting after sessions being enabled should show ...
9 years, 4 months ago (2011-08-19 16:59:21 UTC) #2
Nicolas Zea
New, fresher, improved! Please take a look. Drew, I've confirmed that the promo appears, link ...
9 years, 4 months ago (2011-08-19 22:09:18 UTC) #3
Nicolas Zea
Also adding Yaron as FYI. The proto changes will need to be duplicated on the ...
9 years, 4 months ago (2011-08-19 22:11:40 UTC) #4
tim (not reviewing)
MigrationDone will keep being returned if a getupdates or commit is issued for the type ...
9 years, 4 months ago (2011-08-22 15:42:08 UTC) #5
Andrew T Wilson (Slow)
LGTM - I'm going to defer to Tim about the changes to the frontend/backend, although ...
9 years, 4 months ago (2011-08-22 20:30:32 UTC) #6
Nicolas Zea
Please take another look. http://codereview.chromium.org/7669073/diff/4002/chrome/browser/sync/glue/data_type_manager_impl.h File chrome/browser/sync/glue/data_type_manager_impl.h (right): http://codereview.chromium.org/7669073/diff/4002/chrome/browser/sync/glue/data_type_manager_impl.h#newcode27 chrome/browser/sync/glue/data_type_manager_impl.h:27: DataTypeController::TypeMap* controllers); On 2011/08/22 20:30:33, ...
9 years, 4 months ago (2011-08-22 22:50:15 UTC) #7
tim (not reviewing)
http://codereview.chromium.org/7669073/diff/11002/chrome/browser/sync/glue/sync_backend_host.h File chrome/browser/sync/glue/sync_backend_host.h (right): http://codereview.chromium.org/7669073/diff/11002/chrome/browser/sync/glue/sync_backend_host.h#newcode104 chrome/browser/sync/glue/sync_backend_host.h:104: virtual void OnDataTypesChanged(const syncable::ModelTypeSet& to_add) = 0; Add a ...
9 years, 4 months ago (2011-08-23 13:58:52 UTC) #8
Nicolas Zea
Comments addressed. http://codereview.chromium.org/7669073/diff/11002/chrome/browser/sync/glue/sync_backend_host.h File chrome/browser/sync/glue/sync_backend_host.h (right): http://codereview.chromium.org/7669073/diff/11002/chrome/browser/sync/glue/sync_backend_host.h#newcode104 chrome/browser/sync/glue/sync_backend_host.h:104: virtual void OnDataTypesChanged(const syncable::ModelTypeSet& to_add) = 0; ...
9 years, 4 months ago (2011-08-23 16:48:25 UTC) #9
tim (not reviewing)
LGTM
9 years, 4 months ago (2011-08-23 18:31:53 UTC) #10
commit-bot: I haz the power
Presubmit check for 7669073-14001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 4 months ago (2011-08-23 18:34:21 UTC) #11
Nicolas Zea
+Nick for testserver.py and chromiumsync.py ownership
9 years, 4 months ago (2011-08-23 18:38:02 UTC) #12
ncarter (slow)
LGTM with style fixes. http://codereview.chromium.org/7669073/diff/14001/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/7669073/diff/14001/net/tools/testserver/chromiumsync.py#newcode867 net/tools/testserver/chromiumsync.py:867: """ Set the 'sync_tabs' field ...
9 years, 4 months ago (2011-08-25 00:05:09 UTC) #13
commit-bot: I haz the power
Change committed as 98328
9 years, 4 months ago (2011-08-25 22:21:07 UTC) #14
Nicolas Zea
9 years, 4 months ago (2011-08-25 23:36:23 UTC) #15
http://codereview.chromium.org/7669073/diff/14001/net/tools/testserver/chromi...
File net/tools/testserver/chromiumsync.py (right):

http://codereview.chromium.org/7669073/diff/14001/net/tools/testserver/chromi...
net/tools/testserver/chromiumsync.py:867: """ Set the 'sync_tabs' field to this
account's nigori node.
On 2011/08/25 00:05:09, ncarter wrote:
> No space after """

Done.

http://codereview.chromium.org/7669073/diff/14001/net/tools/testserver/chromi...
net/tools/testserver/chromiumsync.py:883: class TestServer(object):
On 2011/08/25 00:05:09, ncarter wrote:
> Each top-level definition should be preceded by 2 blank lines; please restore.

Done.

http://codereview.chromium.org/7669073/diff/14001/net/tools/testserver/chromi...
net/tools/testserver/chromiumsync.py:959: """ Set the 'sync_tab' field of the
nigori node for this account. """
On 2011/08/25 00:05:09, ncarter wrote:
> No space after opening """ and no space between . and closing """

Done.

http://codereview.chromium.org/7669073/diff/14001/net/tools/testserver/chromi...
net/tools/testserver/chromiumsync.py:960: self.account.TriggerSyncTabs();
On 2011/08/25 00:05:09, ncarter wrote:
> SEMICOLON?!?!

Done.

Powered by Google App Engine
This is Rietveld 408576698