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

Issue 7108067: [Sync] Ensure cryptographer ready before encrypting. (Closed)

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

Description

[Sync] Ensure cryptographer ready before encrypting. Also, make cryptographer more robust to errors and add error logging for cases where the cryptographer is not ready when we expect it to be. BUG=81152 TEST=new cryptographer unit tests and synapi unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89038

Patch Set 1 #

Total comments: 4

Patch Set 2 : Switch to notreached #

Patch Set 3 : Split bootstrap encryption and add ReloadNigori method #

Total comments: 4

Patch Set 4 : Review #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -53 lines) Patch
M chrome/browser/sync/engine/syncapi.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 3 4 9 chunks +58 lines, -48 lines 0 comments Download
M chrome/browser/sync/engine/syncapi_unittest.cc View 1 2 3 2 chunks +84 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/util/cryptographer.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/util/cryptographer_unittest.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/sync/util/nigori.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Nicolas Zea
This patch should both prevent us from attempting to encrypt when the cryptographer is not ...
9 years, 6 months ago (2011-06-10 20:43:54 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/7108067/diff/1/chrome/browser/sync/engine/syncapi_unittest.cc File chrome/browser/sync/engine/syncapi_unittest.cc (right): http://codereview.chromium.org/7108067/diff/1/chrome/browser/sync/engine/syncapi_unittest.cc#newcode1368 chrome/browser/sync/engine/syncapi_unittest.cc:1368: password_node.SetPasswordSpecifics(data); Is this legal? http://codereview.chromium.org/7108067/diff/1/chrome/browser/sync/util/nigori.cc File chrome/browser/sync/util/nigori.cc (right): http://codereview.chromium.org/7108067/diff/1/chrome/browser/sync/util/nigori.cc#newcode172 ...
9 years, 6 months ago (2011-06-13 17:43:22 UTC) #2
Nicolas Zea
http://codereview.chromium.org/7108067/diff/1/chrome/browser/sync/engine/syncapi_unittest.cc File chrome/browser/sync/engine/syncapi_unittest.cc (right): http://codereview.chromium.org/7108067/diff/1/chrome/browser/sync/engine/syncapi_unittest.cc#newcode1368 chrome/browser/sync/engine/syncapi_unittest.cc:1368: password_node.SetPasswordSpecifics(data); On 2011/06/13 17:43:22, timsteele wrote: > Is this ...
9 years, 6 months ago (2011-06-13 18:38:21 UTC) #3
Nicolas Zea
PTAL. I've gone ahead and implemented the design we discussed. Namely, bootstrap encryption now does ...
9 years, 6 months ago (2011-06-13 23:45:22 UTC) #4
tim (not reviewing)
http://codereview.chromium.org/7108067/diff/6001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/7108067/diff/6001/chrome/browser/sync/engine/syncapi.cc#newcode3000 chrome/browser/sync/engine/syncapi.cc:3000: if (data_->UpdateCryptographerFromNigori()) is it possible for is_ready() to change ...
9 years, 6 months ago (2011-06-14 01:32:58 UTC) #5
Nicolas Zea
PTAL http://codereview.chromium.org/7108067/diff/6001/chrome/browser/sync/engine/syncapi.cc File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/7108067/diff/6001/chrome/browser/sync/engine/syncapi.cc#newcode3000 chrome/browser/sync/engine/syncapi.cc:3000: if (data_->UpdateCryptographerFromNigori()) On 2011/06/14 01:32:58, timsteele wrote: > ...
9 years, 6 months ago (2011-06-14 16:52:37 UTC) #6
tim (not reviewing)
LGTM
9 years, 6 months ago (2011-06-14 17:00:33 UTC) #7
commit-bot: I haz the power
9 years, 6 months ago (2011-06-14 18:55:37 UTC) #8
Change committed as 89038

Powered by Google App Engine
This is Rietveld 408576698