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

Issue 8862005: Handle duplicate password sync nodes (Closed)

Created:
9 years ago by rlarocque
Modified:
9 years ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

Handle duplicate password sync nodes If the PasswordStore is asked to add an entry that already exists it will overwrite the existing entry. When this happens, it will report a PasswordStoreChange::ADD event, much like it would had the original entry not existed. This confuses the PasswordChangeProcessor which assumes that an ADD event implies that the added item did not previously exist. This change works around the issue by allowing the password change processor to try to update an existing node in the event that the creation of a new node fails. This allows it to handle the case where a it receives an ADD event for an existing node. A better solution would be to have the PasswordStore to always return an UPDATE event in cases where the node being updated already exists. If that solution were implemented the PasswordChangeProcessor would be right to report an UnrecoverableError if it is unable to create a new sync node in response to an ADD event. BUG=87855 TEST=See repro steps in crbug.com/87855, crbug.com/103455 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113888

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use dictionary words in logs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -9 lines) Patch
M chrome/browser/sync/glue/password_change_processor.cc View 1 1 chunk +29 lines, -9 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rlarocque
This is a workaround for issues 87855 and 103455. We can remove this code when ...
9 years ago (2011-12-08 00:10:07 UTC) #1
lipalani1
LGTM!! Deja vu! I think I put in a similar fix while ago but then ...
9 years ago (2011-12-08 00:13:58 UTC) #2
Mike Mammarella
LGTM, thanks! http://codereview.chromium.org/8862005/diff/1/chrome/browser/sync/glue/password_change_processor.cc File chrome/browser/sync/glue/password_change_processor.cc (right): http://codereview.chromium.org/8862005/diff/1/chrome/browser/sync/glue/password_change_processor.cc#newcode108 chrome/browser/sync/glue/password_change_processor.cc:108: "Unable to create or lookup password node"); ...
9 years ago (2011-12-08 04:32:04 UTC) #3
rlarocque
I'll let the trybots have another run at this then hit the commit button this ...
9 years ago (2011-12-09 18:53:42 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/8862005/4001
9 years ago (2011-12-09 21:11:44 UTC) #5
commit-bot: I haz the power
9 years ago (2011-12-10 00:12:44 UTC) #6
Change committed as 113888

Powered by Google App Engine
This is Rietveld 408576698