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

Issue 2698103002: Allow embedder to use custom cryptography in Autofill table. (Closed)

Created:
3 years, 10 months ago by devarajn
Modified:
3 years, 10 months ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow embedder to use custom cryptography in Autofill table. As of today, Autofill table makes static calls to OSCrypt component for cyptography needs and does not allow embedders to inject custom crytography. This change fixes it by allowing Autofill table to take encryptor as dependency. BUG=692826 TEST=components_unittests Review-Url: https://codereview.chromium.org/2698103002 Cr-Commit-Position: refs/heads/master@{#452757} Committed: https://chromium.googlesource.com/chromium/src/+/c0483e6b832ff9e9117c86fdf2641b389d9c2992

Patch Set 1 #

Total comments: 24

Patch Set 2 : Allow embedder to use custom cryptography in Autofill table. #

Total comments: 6

Patch Set 3 : Allow embedder to use custom cryptography in Autofill table. #

Total comments: 31

Patch Set 4 : Allow embedder to use custom cryptography in Autofill table. #

Total comments: 8

Patch Set 5 : Allow embedder to use custom cryptography in Autofill table. #

Total comments: 2

Patch Set 6 : Allow embedder to use custom cryptography in Autofill table. #

Total comments: 2

Patch Set 7 : Changed the ifdef name space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -18 lines) Patch
M AUTHORS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/BUILD.gn View 2 chunks +5 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 1 2 3 4 12 chunks +30 lines, -18 lines 0 comments Download
A components/autofill/core/browser/webdata/autofill_table_encryptor.h View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A components/autofill/core/browser/webdata/autofill_table_encryptor_factory.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A components/autofill/core/browser/webdata/system_encryptor.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A components/autofill/core/browser/webdata/system_encryptor.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 65 (25 generated)
devarajn
Hi sebsg@, I am trying to make Autofill table embedder friendly so that I can ...
3 years, 10 months ago (2017-02-16 00:29:35 UTC) #3
Roger McFarlane (Chromium)
Nice! https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table.cc#newcode410 components/autofill/core/browser/webdata/autofill_table.cc:410: std::move(AutofillTableEncryptorFactory::GetInstance()->Create())) {} nit: you don't need to std::move() ...
3 years, 10 months ago (2017-02-17 21:04:09 UTC) #5
devarajn
https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table.cc#newcode410 components/autofill/core/browser/webdata/autofill_table.cc:410: std::move(AutofillTableEncryptorFactory::GetInstance()->Create())) {} On 2017/02/17 21:04:08, Roger McFarlane (Chromium) wrote: ...
3 years, 10 months ago (2017-02-17 22:28:54 UTC) #6
Roger McFarlane (Chromium)
git cl upload again to add your latest patchset to the review
3 years, 10 months ago (2017-02-17 22:34:06 UTC) #7
devarajn
Pending git cl upload after addressing one doubt https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode19 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:19: class ...
3 years, 10 months ago (2017-02-17 23:02:51 UTC) #8
Roger McFarlane (Chromium)
https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode19 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:19: class AutofillTableEncryptorFactory { On 2017/02/17 23:02:50, devarajn wrote: > ...
3 years, 10 months ago (2017-02-21 20:57:05 UTC) #9
devarajn
https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode19 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:19: class AutofillTableEncryptorFactory { On 2017/02/21 20:57:05, Roger McFarlane (Chromium) ...
3 years, 10 months ago (2017-02-21 21:19:54 UTC) #10
devarajn
Hello Reviewers, I have uploaded the second revision for more feedbacks. Quick question on code ...
3 years, 10 months ago (2017-02-21 21:25:47 UTC) #11
devarajn
Hi, Could you please take another look. Thanks
3 years, 10 months ago (2017-02-22 02:09:26 UTC) #12
Roger McFarlane (Chromium)
https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table.cc#newcode413 components/autofill/core/browser/webdata/autofill_table.cc:413: : autofill_table_encryptor_(std::move(autofill_table_encryptor)) {} DCHECK(autofill_table_encrypter_ != nullptr); https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h ...
3 years, 10 months ago (2017-02-22 18:01:28 UTC) #17
devarajn
Hello, Could you please take another look Thank you https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table.cc#newcode413 components/autofill/core/browser/webdata/autofill_table.cc:413: ...
3 years, 10 months ago (2017-02-22 18:13:56 UTC) #18
devarajn
Hello, Could you please take another look. Thank you
3 years, 10 months ago (2017-02-22 18:15:33 UTC) #19
Roger McFarlane (Chromium)
https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode36 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:36: AutofillTableEncryptorFactory(); On 2017/02/22 18:13:56, devarajn wrote: > On 2017/02/22 ...
3 years, 10 months ago (2017-02-22 18:32:57 UTC) #20
Roger McFarlane (Chromium)
+rouslan Are you comforable with this the CC/payments info?
3 years, 10 months ago (2017-02-22 18:37:50 UTC) #22
devarajn
https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/20001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode36 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:36: AutofillTableEncryptorFactory(); On 2017/02/22 18:32:56, Roger McFarlane (Chromium) wrote: > ...
3 years, 10 months ago (2017-02-22 18:56:59 UTC) #23
please use gerrit instead
Overall design is OK https://codereview.chromium.org/2698103002/diff/40001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/40001/components/autofill/core/browser/webdata/autofill_table.h#newcode17 components/autofill/core/browser/webdata/autofill_table.h:17: #include "components/autofill/core/browser/webdata/autofill_table_encryptor.h" Can you forward-declare ...
3 years, 10 months ago (2017-02-22 19:05:43 UTC) #24
devarajn
https://codereview.chromium.org/2698103002/diff/40001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/40001/components/autofill/core/browser/webdata/autofill_table.h#newcode17 components/autofill/core/browser/webdata/autofill_table.h:17: #include "components/autofill/core/browser/webdata/autofill_table_encryptor.h" On 2017/02/22 19:05:42, rouslan wrote: > Can ...
3 years, 10 months ago (2017-02-22 19:24:26 UTC) #25
please use gerrit instead
Will wait for the updated patch to pass the try bots.
3 years, 10 months ago (2017-02-22 19:28:28 UTC) #28
Roger McFarlane (Chromium)
https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode11 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:11: #include "components/autofill/core/browser/webdata/autofill_table_encryptor.h" On 2017/02/17 22:28:54, devarajn wrote: > On ...
3 years, 10 months ago (2017-02-22 19:29:50 UTC) #29
Roger McFarlane (Chromium)
https://codereview.chromium.org/2698103002/diff/40001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/40001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode37 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:37: ~AutofillTableEncryptorFactory() {} On 2017/02/22 18:56:58, devarajn wrote: > On ...
3 years, 10 months ago (2017-02-22 19:59:44 UTC) #30
devarajn
https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/1/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode11 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:11: #include "components/autofill/core/browser/webdata/autofill_table_encryptor.h" On 2017/02/22 19:29:50, Roger McFarlane (Chromium) wrote: ...
3 years, 10 months ago (2017-02-22 22:07:59 UTC) #35
please use gerrit instead
lgtm % comment: https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h#newcode473 components/autofill/core/browser/webdata/autofill_table.h:473: std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor_; Please move the variable ...
3 years, 10 months ago (2017-02-22 22:34:58 UTC) #36
Roger McFarlane (Chromium)
Nice! https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h#newcode256 components/autofill/core/browser/webdata/autofill_table.h:256: std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor); This additional public constructor seems redundant ...
3 years, 10 months ago (2017-02-22 22:50:52 UTC) #37
devarajn
https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h#newcode256 components/autofill/core/browser/webdata/autofill_table.h:256: std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor); On 2017/02/22 22:50:52, Roger McFarlane (Chromium) wrote: ...
3 years, 10 months ago (2017-02-22 23:10:54 UTC) #38
Roger McFarlane (Chromium)
https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h#newcode256 components/autofill/core/browser/webdata/autofill_table.h:256: std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor); On 2017/02/22 23:10:54, devarajn wrote: > On ...
3 years, 10 months ago (2017-02-22 23:20:34 UTC) #39
devarajn
https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/60001/components/autofill/core/browser/webdata/autofill_table.h#newcode256 components/autofill/core/browser/webdata/autofill_table.h:256: std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor); On 2017/02/22 23:20:34, Roger McFarlane (Chromium) wrote: ...
3 years, 10 months ago (2017-02-22 23:26:05 UTC) #40
devarajn
Hi, Please take another look. Thank you
3 years, 10 months ago (2017-02-22 23:37:18 UTC) #42
Roger McFarlane (Chromium)
https://codereview.chromium.org/2698103002/diff/80001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/80001/components/autofill/core/browser/webdata/autofill_table.h#newcode256 components/autofill/core/browser/webdata/autofill_table.h:256: std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor); delete?
3 years, 10 months ago (2017-02-22 23:46:26 UTC) #45
Roger McFarlane (Chromium)
when you upload... git cl upload -t "description" It will help us tell your patchsets ...
3 years, 10 months ago (2017-02-22 23:50:45 UTC) #46
devarajn
https://codereview.chromium.org/2698103002/diff/80001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2698103002/diff/80001/components/autofill/core/browser/webdata/autofill_table.h#newcode256 components/autofill/core/browser/webdata/autofill_table.h:256: std::unique_ptr<AutofillTableEncryptor> autofill_table_encryptor); On 2017/02/22 23:46:26, Roger McFarlane (Chromium) wrote: ...
3 years, 10 months ago (2017-02-22 23:53:56 UTC) #47
devarajn
Hi, Please take another look. Thanks
3 years, 10 months ago (2017-02-22 23:55:28 UTC) #49
devarajn
On 2017/02/22 23:50:45, Roger McFarlane (Chromium) wrote: > when you upload... > > git cl ...
3 years, 10 months ago (2017-02-22 23:56:24 UTC) #51
devarajn
Hi, Could you please take another look. Thank you
3 years, 10 months ago (2017-02-23 19:40:24 UTC) #54
Roger McFarlane (Chromium)
Looks good except for one last nit https://codereview.chromium.org/2698103002/diff/100001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/100001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode6 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:6: #define COMPONENTS_WEBDATA_SERVICES_AUTOFILL_TABLE_ENCRYPTOR_FACTORY_H_ ...
3 years, 10 months ago (2017-02-24 03:00:13 UTC) #55
devarajn
https://codereview.chromium.org/2698103002/diff/100001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h File components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h (right): https://codereview.chromium.org/2698103002/diff/100001/components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h#newcode6 components/autofill/core/browser/webdata/autofill_table_encryptor_factory.h:6: #define COMPONENTS_WEBDATA_SERVICES_AUTOFILL_TABLE_ENCRYPTOR_FACTORY_H_ On 2017/02/24 03:00:13, Roger McFarlane (Chromium) wrote: ...
3 years, 10 months ago (2017-02-24 03:09:40 UTC) #56
devarajn
Addressed @rogerm's feedback. Could you please take another look. Thank you
3 years, 10 months ago (2017-02-24 03:28:17 UTC) #57
Roger McFarlane (Chromium)
lgtm
3 years, 10 months ago (2017-02-24 03:49:52 UTC) #58
devarajn
On 2017/02/24 03:49:52, Roger McFarlane (Chromium) wrote: > lgtm Thanks for reviewing code at late ...
3 years, 10 months ago (2017-02-24 03:53:19 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2698103002/120001
3 years, 10 months ago (2017-02-24 03:53:50 UTC) #62
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 05:16:42 UTC) #65
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c0483e6b832ff9e9117c86fdf264...

Powered by Google App Engine
This is Rietveld 408576698