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

Issue 1161463005: [Sync] Don't crash for encryption errors (Closed)

Created:
5 years, 6 months ago by Nicolas Zea
Modified:
5 years, 6 months ago
Reviewers:
stanisc
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Don't crash for encryption errors Encryption errors can arise due to OS issues in some cases or simply directory corruption. Rather than crashing trigger an unrecoverable error. BUG=123223 Committed: https://crrev.com/dea3a922a415ef050c3a5fb0d2d19571fe578413 Cr-Commit-Position: refs/heads/master@{#333644}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Add comments #

Total comments: 8

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Address final comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -21 lines) Patch
M sync/internal_api/base_node.cc View 1 3 chunks +10 lines, -10 lines 0 comments Download
M sync/internal_api/sync_encryption_handler_impl.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 3 6 chunks +101 lines, -3 lines 0 comments Download
M sync/internal_api/syncapi_internal.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M sync/internal_api/write_node.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/util/cryptographer.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Nicolas Zea
+Stan, PTAL.
5 years, 6 months ago (2015-06-08 21:29:43 UTC) #2
stanisc
https://codereview.chromium.org/1161463005/diff/40001/sync/internal_api/sync_encryption_handler_impl.cc File sync/internal_api/sync_encryption_handler_impl.cc (right): https://codereview.chromium.org/1161463005/diff/40001/sync/internal_api/sync_encryption_handler_impl.cc#newcode837 sync/internal_api/sync_encryption_handler_impl.cc:837: break; It isn't clear how this could be possible. ...
5 years, 6 months ago (2015-06-09 00:04:03 UTC) #3
Nicolas Zea
https://codereview.chromium.org/1161463005/diff/40001/sync/internal_api/sync_encryption_handler_impl.cc File sync/internal_api/sync_encryption_handler_impl.cc (right): https://codereview.chromium.org/1161463005/diff/40001/sync/internal_api/sync_encryption_handler_impl.cc#newcode837 sync/internal_api/sync_encryption_handler_impl.cc:837: break; On 2015/06/09 00:04:02, stanisc wrote: > It isn't ...
5 years, 6 months ago (2015-06-09 19:42:03 UTC) #4
stanisc
lgtm https://codereview.chromium.org/1161463005/diff/60001/sync/internal_api/sync_encryption_handler_impl.cc File sync/internal_api/sync_encryption_handler_impl.cc (right): https://codereview.chromium.org/1161463005/diff/60001/sync/internal_api/sync_encryption_handler_impl.cc#newcode837 sync/internal_api/sync_encryption_handler_impl.cc:837: break; Consider adding a comment here and mentioning ...
5 years, 6 months ago (2015-06-09 23:02:11 UTC) #5
Nicolas Zea
Done, thanks for the review. Committing. https://codereview.chromium.org/1161463005/diff/60001/sync/internal_api/sync_encryption_handler_impl.cc File sync/internal_api/sync_encryption_handler_impl.cc (right): https://codereview.chromium.org/1161463005/diff/60001/sync/internal_api/sync_encryption_handler_impl.cc#newcode837 sync/internal_api/sync_encryption_handler_impl.cc:837: break; On 2015/06/09 ...
5 years, 6 months ago (2015-06-09 23:31:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161463005/80001
5 years, 6 months ago (2015-06-09 23:37:17 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-10 01:51:40 UTC) #10
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 01:52:30 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/dea3a922a415ef050c3a5fb0d2d19571fe578413
Cr-Commit-Position: refs/heads/master@{#333644}

Powered by Google App Engine
This is Rietveld 408576698