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

Issue 2858027: Update the Nigori node when the passphrase changes. (Closed)

Created:
10 years, 6 months ago by albertb
Modified:
9 years, 3 months ago
Reviewers:
ncarter (slow)
CC:
chromium-reviews, Paweł Hajdan Jr., ncarter (slow), ben+cc_chromium.org, tim (not reviewing), idana
Visibility:
Public.

Description

Update the Nigori node when the passphrase changes. BUG=32410 TEST=unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51041

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -54 lines) Patch
M chrome/browser/sync/engine/syncapi.cc View 1 1 chunk +11 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 13 chunks +101 lines, -53 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
albertb
Hi Nick, I'm debating whether to make the SyncFrontend an UnrecoverableErrorHandler and use it to ...
10 years, 6 months ago (2010-06-25 19:54:38 UTC) #1
ncarter (slow)
LGTM with thoughts. http://codereview.chromium.org/2858027/diff/1/2 File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/2858027/diff/1/2#newcode1533 chrome/browser/sync/engine/syncapi.cc:1533: // TODO(albertb): Plumb an UnrecoverableError all ...
10 years, 6 months ago (2010-06-25 22:47:38 UTC) #2
albertb
10 years, 5 months ago (2010-06-28 17:33:09 UTC) #3
Thanks, will submit when the trybots turn green.

http://codereview.chromium.org/2858027/diff/1/2
File chrome/browser/sync/engine/syncapi.cc (right):

http://codereview.chromium.org/2858027/diff/1/2#newcode1533
chrome/browser/sync/engine/syncapi.cc:1533: // TODO(albertb): Plumb an
UnrecoverableError all the way back to the PSS.
On 2010/06/25 22:47:38, ncarter wrote:
> I'd be fine with UREH being plumbed here.
Sounds good. I'll plumb it in another patch.

http://codereview.chromium.org/2858027/diff/1/3
File chrome/browser/sync/profile_sync_service_password_unittest.cc (right):

http://codereview.chromium.org/2858027/diff/1/3#newcode220
chrome/browser/sync/profile_sync_service_password_unittest.cc:220:
nigori_node.Put(SPECIFICS, nigori_specifics);
On 2010/06/25 22:47:38, ncarter wrote:
> This is the first time I've noticed how in this file we test things at the
> ProfileSyncService layer, but also directly create entries in the syncable DB
> (sidestepping the limitations imposed by the syncapi).  It's kind of cool. 
The
> other test types had fakey interceptions of GetSyncIdForTaggedNode, a method
> that owes its existence to this problem.  I'd support getting rid of
> GetSyncIdForTaggedNode in favor of what you do here; it's more realistic.  And
> this is making me what else we could stand to gain (in terms of testability,
> etc) by breaking down some of the syncapi/syncable barrier.

Zork deserves the credit to coming up with this way of creating the permanent
password node, I just added code to also create the Nigori node. Regarding
testing, in addition to the syncapi/syncable barrier, I think one of the big
obstacles is the prevalent use of static methods and constructors. Skrul filed a
bug a couple months ago with a few good suggestions: crbug.com/42152

> As a side note, it's shocking how many lines of code it is to set up a single
> syncable object that passes the tree invariants, don't you think?

To be honest, I am shocked how many lines of code it takes to do anything with
sync :)

Powered by Google App Engine
This is Rietveld 408576698