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

Issue 6465005: [Sync] Initial support for encrypting any datatype (no UI hookup yet). (Closed)

Created:
9 years, 10 months ago by Nicolas Zea
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), idana, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

[Sync] Initial support for encrypting any datatype (no UI hookup yet). BUG=59242 TEST=unit,sync_unit,sync_integration Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75287

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 8

Patch Set 3 : Tests for nigori_util and apply_update_command_unittest. #

Patch Set 4 : Rebase + fix tests #

Patch Set 5 : Comments. Rest of unit tests. #

Total comments: 14

Patch Set 6 : Rebase + Raghu's comments. #

Patch Set 7 : Compile error. #

Total comments: 2

Patch Set 8 : Feedback and fix windows crash. #

Total comments: 4

Patch Set 9 : Comments and corresponding changes + rebase #

Patch Set 10 : Rebase + small fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1702 lines, -211 lines) Patch
M chrome/browser/sync/engine/apply_updates_command_unittest.cc View 1 2 3 4 5 6 7 8 11 chunks +256 lines, -11 lines 0 comments Download
M chrome/browser/sync/engine/change_reorder_buffer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/syncapi.h View 1 2 3 4 5 6 7 8 9 7 chunks +43 lines, -28 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 3 4 5 6 7 8 9 33 chunks +351 lines, -107 lines 0 comments Download
M chrome/browser/sync/engine/syncapi_unittest.cc View 1 2 3 4 5 6 7 8 10 chunks +262 lines, -7 lines 0 comments Download
M chrome/browser/sync/engine/syncer_util.cc View 1 2 3 4 5 5 chunks +43 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/password_change_processor.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/glue/session_change_processor.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/session_change_processor.cc View 1 2 3 4 3 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 5 6 7 8 9 7 chunks +21 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 6 7 8 9 6 chunks +35 lines, -8 lines 0 comments Download
M chrome/browser/sync/js_sync_manager_observer.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/js_sync_manager_observer.cc View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/sync/js_sync_manager_observer_unittest.cc View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 3 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.h View 1 2 3 4 5 6 7 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 2 3 4 5 6 7 3 chunks +43 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/protocol/nigori_specifics.proto View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/protocol/sync.proto View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/model_type.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/model_type.cc View 1 2 3 4 5 1 chunk +43 lines, -2 lines 0 comments Download
M chrome/browser/sync/syncable/model_type_unittest.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/sync/syncable/nigori_util.h View 1 2 3 4 5 6 7 8 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/sync/syncable/nigori_util.cc View 1 2 3 4 5 6 7 8 1 chunk +196 lines, -0 lines 0 comments Download
A chrome/browser/sync/syncable/nigori_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 1 2 3 4 5 6 10 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/sync/util/cryptographer.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/util/cryptographer.cc View 1 2 3 4 5 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/live_sync/live_sessions_sync_test.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/test/live_sync/multiple_client_live_sessions_sync_test.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
chrome/test/live_sync/two_client_live_sessions_sync_test.cc View 1 2 3 2 chunks +51 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Nicolas Zea
+rsimha for sync integration test modifications +tim for sync internals I've todo'd a number of ...
9 years, 10 months ago (2011-02-09 01:26:32 UTC) #1
tim (not reviewing)
Just started looking at this puppy! Adding Albert to take a quick peek, if he ...
9 years, 10 months ago (2011-02-09 23:54:10 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/6465005/diff/2001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6465005/diff/2001/chrome/browser/sync/engine/syncapi.cc#newcode394 chrome/browser/sync/engine/syncapi.cc:394: DCHECK(type != syncable::UNSPECIFIED); DCHECK_NE http://codereview.chromium.org/6465005/diff/2001/chrome/browser/sync/glue/session_change_processor.cc File chrome/browser/sync/glue/session_change_processor.cc (right): http://codereview.chromium.org/6465005/diff/2001/chrome/browser/sync/glue/session_change_processor.cc#newcode190 ...
9 years, 10 months ago (2011-02-11 06:52:31 UTC) #3
Raghu Simha
http://codereview.chromium.org/6465005/diff/20001/chrome/browser/sync/profile_sync_service_harness.cc File chrome/browser/sync/profile_sync_service_harness.cc (right): http://codereview.chromium.org/6465005/diff/20001/chrome/browser/sync/profile_sync_service_harness.cc#newcode292 chrome/browser/sync/profile_sync_service_harness.cc:292: // Sync has finished encrypting the datatypes. There is ...
9 years, 10 months ago (2011-02-14 05:29:52 UTC) #4
Nicolas Zea
Please take another look. Should have all unit tests in now (added some functionality to ...
9 years, 10 months ago (2011-02-14 21:18:40 UTC) #5
Raghu Simha
Test changes LGTM pending green trybot runs. http://codereview.chromium.org/6465005/diff/11004/chrome/browser/sync/profile_sync_service_harness.h File chrome/browser/sync/profile_sync_service_harness.h (right): http://codereview.chromium.org/6465005/diff/11004/chrome/browser/sync/profile_sync_service_harness.h#newcode195 chrome/browser/sync/profile_sync_service_harness.h:195: syncable::ModelType waiting_for_encryption_type_; ...
9 years, 10 months ago (2011-02-14 22:56:51 UTC) #6
tim (not reviewing)
http://codereview.chromium.org/6465005/diff/20001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6465005/diff/20001/chrome/browser/sync/engine/syncapi.cc#newcode1907 chrome/browser/sync/engine/syncapi.cc:1907: << syncable::ModelTypeToString(*iter); Does SyncBackendHost enforce that registrar can't change ...
9 years, 10 months ago (2011-02-15 00:10:56 UTC) #7
Nicolas Zea
http://codereview.chromium.org/6465005/diff/20001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/6465005/diff/20001/chrome/browser/sync/engine/syncapi.cc#newcode1907 chrome/browser/sync/engine/syncapi.cc:1907: << syncable::ModelTypeToString(*iter); Good point. It's probably better to just ...
9 years, 10 months ago (2011-02-15 19:52:18 UTC) #8
tim (not reviewing)
Couple nits and I think this LGTM! Nice work. Make sure we update the server ...
9 years, 10 months ago (2011-02-15 19:58:04 UTC) #9
Nicolas Zea
9 years, 10 months ago (2011-02-15 23:30:51 UTC) #10
Done! Committing once trybots go green.

http://codereview.chromium.org/6465005/diff/36002/chrome/browser/sync/protoco...
File chrome/browser/sync/protocol/nigori_specifics.proto (right):

http://codereview.chromium.org/6465005/diff/36002/chrome/browser/sync/protoco...
chrome/browser/sync/protocol/nigori_specifics.proto:41: optional bool
encrypt_passwords = 5;
On 2011/02/15 19:58:04, timsteele wrote:
> I don't think we want this bool?  You can't have passwords without encryption
> right...

Done.

http://codereview.chromium.org/6465005/diff/36002/chrome/browser/sync/protoco...
File chrome/browser/sync/protocol/sync.proto (right):

http://codereview.chromium.org/6465005/diff/36002/chrome/browser/sync/protoco...
chrome/browser/sync/protocol/sync.proto:31: optional EncryptedData encrypted =
1;
On 2011/02/15 19:58:04, timsteele wrote:
> Add a comment here describing how this field works.

Done.

Powered by Google App Engine
This is Rietveld 408576698