| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an EncryptIfDifferent method that only encrypts something if the underlying
unencrypted data is either different or encrypted with an old key. Modify sync
encryption code to use this method instead of their own difference checks.
Because of this change, we also now always ensure the nigori has the full set of
encryption keys during any SetPassphrase call
BUG=107297
TEST=sync_unit_tests, cryptographer's unit_tests
Review URL: http://codereview.chromium.org/8759019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114269 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that the old ModelTypeSet and ModelTypeBitSet are gone, we can rename
ModelEnumSet to ModelTypeSet. Conveniently, they're the same number
of characters, so this is just a straight rename. Command:
git grep -l ModelEnumSet | xargs sed -i '' -e 's/ModelEnumSet/ModelTypeSet/g'
BUG=79970
TEST=
Review URL: http://codereview.chromium.org/8919021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114149 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also change some functions to return ModelEnumSets directly instead of
taking a pointer value.
BUG=79970
TEST=
Review URL: http://codereview.chromium.org/8851006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113906 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This includes never unsetting the encryption status of a type once it has been
set.
BUG=104218
TEST=unit_tests
Review URL: http://codereview.chromium.org/8564032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110578 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make Cryptographer emit notifications whenever the set of encrypted types changes and also when encryption is complete. Propagate that up to the ProfileSyncService.
Since retrieving the encrypted types info requires holding a transaction,
that may lead to deadlocks. This prevents that.
Remove some unnecessary functions and append ForTest to some other ones.
BUG=95619,100698
TEST=
Review URL: http://codereview.chromium.org/8356026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106972 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously we would not automatically encrypt new datatypes (for example
when a datatype is added in a new version). This patch addresses this by
adding an explicit encrypt_everything field to the nigori node, and putting
the cryptographer in charge of handling the decisions aboutwhat datatypes to
encrypt.
BUG=90924,95286
TEST=Cryptographer unit tests, Session's SingleClientEnableEncryption
integration test. Ensuring any previously set up sync account now marks
search_engines and sessions as requiring encryption even when they were
never enabled.
Review URL: http://codereview.chromium.org/7850006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100505 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Original codereview at http://codereview.chromium.org/7108067/.
BUG=81152
TEST=same as 89038
Review URL: http://codereview.chromium.org/7148022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89105 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Review URL: http://codereview.chromium.org/7108067
TBR=zea@chromium.org
Review URL: http://codereview.chromium.org/7150024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89068 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Review URL: http://codereview.chromium.org/7108067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89038 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
raw_scoped_refptr_mismatch_checker.h
ref_counted.cc
ref_counted.h
ref_counted_memory.cc
ref_counted_memory.h
ref_counted_unittest.cc
scoped_callback_factory.h
scoped_comptr_win.h
scoped_handle.h
scoped_native_library.cc
scoped_native_library.h
scoped_native_library_unittest.cc
scoped_nsobject.h
scoped_open_process.h
scoped_ptr.h
scoped_ptr_unittest.cc
scoped_temp_dir.cc
scoped_temp_dir.h
scoped_temp_dir_unittest.cc
scoped_vector.h
singleton.h
singleton_objc.h
singleton_unittest.cc
linked_ptr.h
linked_ptr_unittest.cc
weak_ptr.cc
weak_ptr.h
weak_ptr_unittest.cc
BUG=None
TEST=Compile
Review URL: http://codereview.chromium.org/6714032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
assert handler.
BUG=55177,55178,55180,55181
TEST=unit_tests
Review URL: http://codereview.chromium.org/3303025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59228 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This avoids requiring prompting the user for a passphrase on each
start.
TEST=CryptographerTest, CryptographerPackUnpackTest
Review URL: http://codereview.chromium.org/3216001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58048 0039d316-1c4b-4281-b951-d872f2087c98
|
|
manages a map of Nigori instances and allows data encrypted using different
pass-phrase to be decrypted easily.
BUG=none
TEST=CryptographerTest, NigoriTest
Review URL: http://codereview.chromium.org/2727006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49608 0039d316-1c4b-4281-b951-d872f2087c98
|