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

Issue 7551024: [Sync] Fix encryption/passphrase handling. (Closed)

Created:
9 years, 4 months ago by Nicolas Zea
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), idana
Visibility:
Public.

Description

[Sync] Fix encryption/passphrase handling. We now ensure cached passphrases are always used. In addition, encryption now happens after configuration, allowing us to make use of the pending_encrypted_types to know if we're waiting for encryption (which affects how we prompt for passphrase). This is dependent on sync_setup_flow.cc always calling EncryptDataTypes before configuring the new datatypes and setting pending_encrypted_types_ appropriately, which then gets consumed on SYNC_CONFIGURE_DONE. BUG=91314 TEST=see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95693

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix test + comments #

Patch Set 3 : Fix integration tests #

Total comments: 10

Patch Set 4 : Review + make encrypt all selection use pending types #

Patch Set 5 : Rebase + fix allstatus #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -78 lines) Patch
M chrome/browser/sync/engine/syncapi.cc View 1 2 3 4 5 chunks +57 lines, -20 lines 0 comments Download
M chrome/browser/sync/engine/syncapi_unittest.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 9 chunks +53 lines, -34 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_setup_flow.cc View 1 2 3 4 3 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Nicolas Zea
Please take a look. I added a couple codereview comments into the first patchset to ...
9 years, 4 months ago (2011-08-02 21:18:26 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/7551024/diff/5001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/7551024/diff/5001/chrome/browser/sync/profile_sync_service.cc#newcode699 chrome/browser/sync/profile_sync_service.cc:699: std::string pass = gaia_password_; Comment why we need to ...
9 years, 4 months ago (2011-08-04 16:57:56 UTC) #2
Nicolas Zea
PTAL http://codereview.chromium.org/7551024/diff/5001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/7551024/diff/5001/chrome/browser/sync/profile_sync_service.cc#newcode699 chrome/browser/sync/profile_sync_service.cc:699: std::string pass = gaia_password_; On 2011/08/04 16:57:56, timsteele ...
9 years, 4 months ago (2011-08-04 18:43:54 UTC) #3
tim (not reviewing)
On 2011/08/04 18:43:54, nzea wrote: > PTAL > > http://codereview.chromium.org/7551024/diff/5001/chrome/browser/sync/profile_sync_service.cc > File chrome/browser/sync/profile_sync_service.cc (right): > ...
9 years, 4 months ago (2011-08-05 19:03:40 UTC) #4
commit-bot: I haz the power
9 years, 4 months ago (2011-08-05 20:55:00 UTC) #5
Can't apply patch for file chrome/browser/sync/engine/syncapi.cc.
While running patch -p1 --forward --force;
patching file chrome/browser/sync/engine/syncapi.cc
Hunk #1 succeeded at 2096 (offset 10 lines).
Hunk #2 FAILED at 2108.
Hunk #3 succeeded at 2165 (offset 11 lines).
Hunk #4 succeeded at 2184 (offset 11 lines).
1 out of 4 hunks FAILED -- saving rejects to file
chrome/browser/sync/engine/syncapi.cc.rej

Powered by Google App Engine
This is Rietveld 408576698