|
|
Chromium Code Reviews
DescriptionFill the unencrypted metadata field in password specifics.
Fills the unencrypted metadata field when writing to the password entity is triggered, which should happen on every start up. This way it allows us to bootstrap the over wise empty field.
* Field should stay empty for custom passphrase users.
* The feature is guarded by the experiment, so the field should stay empty if experiment is disabled.
* The entity shouldn't be marked unsynced unless the change to the field has happened.
BUG=638963
Committed: https://crrev.com/72e34aa0b649fb40e03bc171da020bb4e9ccdef6
Cr-Commit-Position: refs/heads/master@{#427336}
Patch Set 1 : rebased #Patch Set 2 : . #Patch Set 3 : cleanup #Patch Set 4 : additional tests #Patch Set 5 : check #
Total comments: 10
Patch Set 6 : comment #Patch Set 7 : additional test #
Total comments: 4
Patch Set 8 : rebased #Patch Set 9 : address comments #Patch Set 10 : rebased #Patch Set 11 : rebased #
Messages
Total messages: 78 (64 generated)
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...)
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...)
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #4 (id:60001) has been deleted
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Patchset #3 (id:40001) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #3 (id:40001) has been deleted
Patchset #1 (id:1) has been deleted
Description was changed from ========== Fill the un-encrypted metadata field in password specifics. Fill the un-encrypted metadata field in password specifics when the password entity is changed. BUG=638963 ========== to ========== Fill the unencrypted metadata field in password specifics. Fill the unencrypted metadata field in password specifics. Fills the unencrypted metadata field when writing to the password entity is triggered, which should happen on every start up. This way it allows us to bootstrap the over wise empty field. * Field should stay empty for custom passphrase users. * The feature is guarded by the experiment, so the field should stay empty if experiment is disabled. * The entity shouldn't be marked unsynced unless the change to the field has happened. BUG=638963 ==========
Description was changed from ========== Fill the unencrypted metadata field in password specifics. Fill the unencrypted metadata field in password specifics. Fills the unencrypted metadata field when writing to the password entity is triggered, which should happen on every start up. This way it allows us to bootstrap the over wise empty field. * Field should stay empty for custom passphrase users. * The feature is guarded by the experiment, so the field should stay empty if experiment is disabled. * The entity shouldn't be marked unsynced unless the change to the field has happened. BUG=638963 ========== to ========== Fill the unencrypted metadata field in password specifics. Fills the unencrypted metadata field when writing to the password entity is triggered, which should happen on every start up. This way it allows us to bootstrap the over wise empty field. * Field should stay empty for custom passphrase users. * The feature is guarded by the experiment, so the field should stay empty if experiment is disabled. * The entity shouldn't be marked unsynced unless the change to the field has happened. BUG=638963 ==========
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
melandory@chromium.org changed reviewers: + zea@chromium.org
PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
Is there any test that verifies that writing a new password with a custom passphrase doesn't set the metadata? https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... File components/sync/core/password_metadata_filling.cc (right): https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... components/sync/core/password_metadata_filling.cc:10: "PasswordMetadaraFilling", base::FEATURE_DISABLED_BY_DEFAULT}; PasswordMetadaraFilling -> PasswordMetadataFilling https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... File components/sync/core/password_metadata_filling.h (right): https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... components/sync/core/password_metadata_filling.h:5: #ifndef COMPONENETS_SYNC_CORE_PASSWORDS_METADAT_FILLING_H_ Two typos (componenents and metadat) in this macro. I'm surprised the presubmit didn't catch that though? Also, what about calling this file sync_features.h, and moving it to sync/base? We're likely to have other features in the future, so may as well centralize it. https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... components/sync/core/password_metadata_filling.h:12: extern const base::Feature kPasswordsMetadataFilling; I think it might be cleaner to just call this kFillPasswordMetadata https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/w... File components/sync/core/write_node.cc (right): https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/w... components/sync/core/write_node.cc:146: } nit: newline after https://codereview.chromium.org/2294913009/diff/140001/components/sync/core_i... File components/sync/core_impl/sync_manager_impl_unittest.cc (right): https://codereview.chromium.org/2294913009/diff/140001/components/sync/core_i... components/sync/core_impl/sync_manager_impl_unittest.cc:2235: TEST_F(SyncManagerTest, nit: To be consistent, would be good to add a comment explaining the purpose of this test.
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/09/23 23:10:37, Nicolas Zea wrote: > Is there any test that verifies that writing a new password with a custom > passphrase doesn't set the metadata? Added to the test, which sets up the custom passphrase. > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... > File components/sync/core/password_metadata_filling.cc (right): > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... > components/sync/core/password_metadata_filling.cc:10: "PasswordMetadaraFilling", > base::FEATURE_DISABLED_BY_DEFAULT}; > PasswordMetadaraFilling -> PasswordMetadataFilling > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... > File components/sync/core/password_metadata_filling.h (right): > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... > components/sync/core/password_metadata_filling.h:5: #ifndef > COMPONENETS_SYNC_CORE_PASSWORDS_METADAT_FILLING_H_ > Two typos (componenents and metadat) in this macro. I'm surprised the presubmit > didn't catch that though? > > Also, what about calling this file sync_features.h, and moving it to sync/base? > We're likely to have other features in the future, so may as well centralize it. > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... > components/sync/core/password_metadata_filling.h:12: extern const base::Feature > kPasswordsMetadataFilling; > I think it might be cleaner to just call this kFillPasswordMetadata > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/w... > File components/sync/core/write_node.cc (right): > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/w... > components/sync/core/write_node.cc:146: } > nit: newline after > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core_i... > File components/sync/core_impl/sync_manager_impl_unittest.cc (right): > > https://codereview.chromium.org/2294913009/diff/140001/components/sync/core_i... > components/sync/core_impl/sync_manager_impl_unittest.cc:2235: > TEST_F(SyncManagerTest, > nit: To be consistent, would be good to add a comment explaining the purpose of > this test.
https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... File components/sync/core/password_metadata_filling.cc (right): https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... components/sync/core/password_metadata_filling.cc:10: "PasswordMetadaraFilling", base::FEATURE_DISABLED_BY_DEFAULT}; On 2016/09/23 23:10:37, Nicolas Zea wrote: > PasswordMetadaraFilling -> PasswordMetadataFilling Done. https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... File components/sync/core/password_metadata_filling.h (right): https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... components/sync/core/password_metadata_filling.h:5: #ifndef COMPONENETS_SYNC_CORE_PASSWORDS_METADAT_FILLING_H_ On 2016/09/23 23:10:37, Nicolas Zea wrote: > Two typos (componenents and metadat) in this macro. I'm surprised the presubmit > didn't catch that though? Yep, weird. > > Also, what about calling this file sync_features.h, and moving it to sync/base? > We're likely to have other features in the future, so may as well centralize it. Done. https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/p... components/sync/core/password_metadata_filling.h:12: extern const base::Feature kPasswordsMetadataFilling; On 2016/09/23 23:10:37, Nicolas Zea wrote: > I think it might be cleaner to just call this kFillPasswordMetadata Done. https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/w... File components/sync/core/write_node.cc (right): https://codereview.chromium.org/2294913009/diff/140001/components/sync/core/w... components/sync/core/write_node.cc:146: } On 2016/09/23 23:10:37, Nicolas Zea wrote: > nit: newline after Done. https://codereview.chromium.org/2294913009/diff/140001/components/sync/core_i... File components/sync/core_impl/sync_manager_impl_unittest.cc (right): https://codereview.chromium.org/2294913009/diff/140001/components/sync/core_i... components/sync/core_impl/sync_manager_impl_unittest.cc:2235: TEST_F(SyncManagerTest, On 2016/09/23 23:10:37, Nicolas Zea wrote: > nit: To be consistent, would be good to add a comment explaining the purpose of > this test. Done.
LGTM! https://codereview.chromium.org/2294913009/diff/180001/components/sync/core/s... File components/sync/core/sync_features.cc (right): https://codereview.chromium.org/2294913009/diff/180001/components/sync/core/s... components/sync/core/sync_features.cc:9: const base::Feature kFillPasswordMetadata{"PasswordMetadataFilling", nit: Add comment describing what this feature is about. Maybe reference a bug number too? https://codereview.chromium.org/2294913009/diff/180001/components/sync/core_i... File components/sync/core_impl/sync_manager_impl_unittest.cc (right): https://codereview.chromium.org/2294913009/diff/180001/components/sync/core_i... components/sync/core_impl/sync_manager_impl_unittest.cc:2155: // Check that writing new password doesn't set the metadata. nit: newline above
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2294913009/diff/180001/components/sync/core/s... File components/sync/core/sync_features.cc (right): https://codereview.chromium.org/2294913009/diff/180001/components/sync/core/s... components/sync/core/sync_features.cc:9: const base::Feature kFillPasswordMetadata{"PasswordMetadataFilling", On 2016/10/04 20:58:11, Nicolas Zea wrote: > nit: Add comment describing what this feature is about. Maybe reference a bug > number too? Done. https://codereview.chromium.org/2294913009/diff/180001/components/sync/core_i... File components/sync/core_impl/sync_manager_impl_unittest.cc (right): https://codereview.chromium.org/2294913009/diff/180001/components/sync/core_i... components/sync/core_impl/sync_manager_impl_unittest.cc:2155: // Check that writing new password doesn't set the metadata. On 2016/10/04 20:58:11, Nicolas Zea wrote: > nit: newline above Done.
The CQ bit was checked by melandory@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from zea@chromium.org Link to the patchset: https://codereview.chromium.org/2294913009/#ps220001 (title: "address comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...)
The CQ bit was checked by melandory@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Nicolas, can you check that components/sync/base is the right place for sync_feature?
zea@chromium.org changed reviewers: + maxbogue@chromium.org
yep, LGTM (+max just in case though)
sync_features being in base/ lgtm. The only other place we have for them right now is in driver, but I'd been considering moving that to base and your stuff is used lower in the hierarchy than driver: https://cs.chromium.org/chromium/src/components/sync/driver/sync_driver_switc...
The CQ bit was checked by melandory@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Fill the unencrypted metadata field in password specifics. Fills the unencrypted metadata field when writing to the password entity is triggered, which should happen on every start up. This way it allows us to bootstrap the over wise empty field. * Field should stay empty for custom passphrase users. * The feature is guarded by the experiment, so the field should stay empty if experiment is disabled. * The entity shouldn't be marked unsynced unless the change to the field has happened. BUG=638963 ========== to ========== Fill the unencrypted metadata field in password specifics. Fills the unencrypted metadata field when writing to the password entity is triggered, which should happen on every start up. This way it allows us to bootstrap the over wise empty field. * Field should stay empty for custom passphrase users. * The feature is guarded by the experiment, so the field should stay empty if experiment is disabled. * The entity shouldn't be marked unsynced unless the change to the field has happened. BUG=638963 ==========
Message was sent while issue was closed.
Committed patchset #11 (id:260001)
Message was sent while issue was closed.
Description was changed from ========== Fill the unencrypted metadata field in password specifics. Fills the unencrypted metadata field when writing to the password entity is triggered, which should happen on every start up. This way it allows us to bootstrap the over wise empty field. * Field should stay empty for custom passphrase users. * The feature is guarded by the experiment, so the field should stay empty if experiment is disabled. * The entity shouldn't be marked unsynced unless the change to the field has happened. BUG=638963 ========== to ========== Fill the unencrypted metadata field in password specifics. Fills the unencrypted metadata field when writing to the password entity is triggered, which should happen on every start up. This way it allows us to bootstrap the over wise empty field. * Field should stay empty for custom passphrase users. * The feature is guarded by the experiment, so the field should stay empty if experiment is disabled. * The entity shouldn't be marked unsynced unless the change to the field has happened. BUG=638963 Committed: https://crrev.com/72e34aa0b649fb40e03bc171da020bb4e9ccdef6 Cr-Commit-Position: refs/heads/master@{#427336} ==========
Message was sent while issue was closed.
Patchset 11 (id:??) landed as https://crrev.com/72e34aa0b649fb40e03bc171da020bb4e9ccdef6 Cr-Commit-Position: refs/heads/master@{#427336} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
