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

Issue 10455012: [Sync] Add support for performing a GetKey on startup. (Closed)

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

Description

[Sync] Add support for performing a GetKey on startup. The functionality is behind the --sync-keystore-encryption flag, and the key is not currently consumed by anything, but this lays the groundwork for testing the server and client interaction. We request a key anytime we perform a GetUpdates while the cryptographer does not have a keystore key. But, it is considered an error to request a key and not receive one, putting us into a state of backoff. BUG=129665 TEST=sync_unit_tests, running against python server Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149248

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Enable flag in integration tests. Fix dcheck #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Fix sync client #

Patch Set 8 : Rebase #

Total comments: 10

Patch Set 9 : Move GetEncryptionKey logic into GetUpdates #

Total comments: 8

Patch Set 10 : Address comments #

Patch Set 11 : Rebase #

Total comments: 4

Patch Set 12 : Fred's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -77 lines) Patch
M chrome/browser/sync/about_sync_util.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 2 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M net/tools/testserver/chromiumsync.py View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +18 lines, -3 lines 0 comments Download
M net/tools/testserver/chromiumsync_test.py View 1 chunk +6 lines, -0 lines 0 comments Download
M sync/engine/download_updates_command.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +42 lines, -0 lines 0 comments Download
M sync/engine/sync_scheduler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -7 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -10 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +13 lines, -8 lines 0 comments Download
M sync/engine/sync_scheduler_whitebox_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +35 lines, -2 lines 0 comments Download
M sync/internal_api/internal_components_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M sync/internal_api/public/internal_components_factory.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M sync/internal_api/public/internal_components_factory_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M sync/internal_api/public/sessions/model_neutral_state.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M sync/internal_api/public/sessions/model_neutral_state.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/public/test/test_internal_components_factory.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -7 lines 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/test/test_internal_components_factory.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -2 lines 0 comments Download
M sync/protocol/sync.proto View 1 2 3 4 5 6 7 8 4 chunks +30 lines, -19 lines 0 comments Download
M sync/sessions/status_controller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M sync/sessions/status_controller.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -3 lines 0 comments Download
M sync/sessions/sync_session_context.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -1 line 0 comments Download
M sync/sessions/sync_session_context.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M sync/sessions/sync_session_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M sync/sessions/test_util.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M sync/sessions/test_util.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M sync/test/engine/mock_connection_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M sync/test/engine/mock_connection_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -1 line 0 comments Download
M sync/test/engine/syncer_command_test.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M sync/tools/sync_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M sync/util/cryptographer.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M sync/util/cryptographer.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -0 lines 0 comments Download
M sync/util/get_session_name.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Nicolas Zea
PTAL. Nearly all of this is just plumbing.
8 years, 7 months ago (2012-05-25 21:13:03 UTC) #1
Nicolas Zea
This is once again ready for review (and based/diffed off http://codereview.chromium.org/10483015/ and http://codereview.chromium.org/10541079/). PTAL
8 years, 6 months ago (2012-06-12 01:10:43 UTC) #2
Nicolas Zea
+cc kevin for sync.proto changes FYI
8 years, 6 months ago (2012-06-22 19:57:26 UTC) #3
Nicolas Zea
This is ready for review again, PTAL.
8 years, 5 months ago (2012-07-19 20:44:54 UTC) #4
tim (not reviewing)
http://codereview.chromium.org/10455012/diff/31076/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/10455012/diff/31076/net/tools/testserver/chromiumsync.py#newcode102 net/tools/testserver/chromiumsync.py:102: KEY_LENGTH = 16 nit: ENCRYPTION_KEY_LENGTH or KEYSTORE_ is a ...
8 years, 5 months ago (2012-07-19 21:42:02 UTC) #5
Nicolas Zea
PTAL http://codereview.chromium.org/10455012/diff/31076/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/10455012/diff/31076/net/tools/testserver/chromiumsync.py#newcode102 net/tools/testserver/chromiumsync.py:102: KEY_LENGTH = 16 On 2012/07/19 21:42:03, timsteele wrote: ...
8 years, 5 months ago (2012-07-24 22:51:24 UTC) #6
tim (not reviewing)
http://codereview.chromium.org/10455012/diff/40038/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/10455012/diff/40038/net/tools/testserver/chromiumsync.py#newcode675 net/tools/testserver/chromiumsync.py:675: def GetKey(self): does anything use this? http://codereview.chromium.org/10455012/diff/40038/sync/engine/download_updates_command.cc File sync/engine/download_updates_command.cc ...
8 years, 5 months ago (2012-07-26 21:53:14 UTC) #7
Nicolas Zea
PTAL http://codereview.chromium.org/10455012/diff/40038/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/10455012/diff/40038/net/tools/testserver/chromiumsync.py#newcode675 net/tools/testserver/chromiumsync.py:675: def GetKey(self): On 2012/07/26 21:53:15, timsteele wrote: > ...
8 years, 5 months ago (2012-07-27 00:43:15 UTC) #8
tim (not reviewing)
http://goo.gl/SO5OL LGTM!!!
8 years, 4 months ago (2012-07-27 17:21:10 UTC) #9
Nicolas Zea
+Fred for net/ ownership
8 years, 4 months ago (2012-07-27 17:37:32 UTC) #10
akalin
testserver changes lgtm http://codereview.chromium.org/10455012/diff/56001/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/10455012/diff/56001/net/tools/testserver/chromiumsync.py#newcode476 net/tools/testserver/chromiumsync.py:476: string.ascii_uppercase + string.digits) for x in ...
8 years, 4 months ago (2012-07-31 00:56:56 UTC) #11
Nicolas Zea
Done, committing http://codereview.chromium.org/10455012/diff/56001/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/10455012/diff/56001/net/tools/testserver/chromiumsync.py#newcode476 net/tools/testserver/chromiumsync.py:476: string.ascii_uppercase + string.digits) for x in range( ...
8 years, 4 months ago (2012-07-31 17:27:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10455012/59001
8 years, 4 months ago (2012-07-31 17:27:15 UTC) #13
commit-bot: I haz the power
Presubmit check for 10455012-59001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-31 17:27:33 UTC) #14
Nicolas Zea
+Thakis for chrome/common OWNERS
8 years, 4 months ago (2012-07-31 17:44:03 UTC) #15
Nico
chrome/ changes lgtm https://chromiumcodereview.appspot.com/10455012/diff/59001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://chromiumcodereview.appspot.com/10455012/diff/59001/chrome/browser/sync/glue/sync_backend_host.cc#newcode979 chrome/browser/sync/glue/sync_backend_host.cc:979: success = sync_manager_->Init( nit: Consider using ...
8 years, 4 months ago (2012-07-31 17:50:51 UTC) #16
Nicolas Zea
Committing. https://chromiumcodereview.appspot.com/10455012/diff/59001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://chromiumcodereview.appspot.com/10455012/diff/59001/chrome/browser/sync/glue/sync_backend_host.cc#newcode979 chrome/browser/sync/glue/sync_backend_host.cc:979: success = sync_manager_->Init( On 2012/07/31 17:50:51, Nico wrote: ...
8 years, 4 months ago (2012-07-31 17:59:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10455012/59001
8 years, 4 months ago (2012-07-31 17:59:48 UTC) #18
commit-bot: I haz the power
8 years, 4 months ago (2012-07-31 19:44:27 UTC) #19
Change committed as 149248

Powered by Google App Engine
This is Rietveld 408576698