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

Issue 15660018: [autofill] Add support for PSL domain matching for password autofill. (Closed)

Created:
7 years, 6 months ago by nyquist
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, jam, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, Albert Bodenhamer, estade+watch_chromium.org, Ilya Sherman, tim (not reviewing), Garrett Casto
Visibility:
Public.

Description

[autofill] Add support for PSL domain matching for password autofill. * Adds support for using the PSL for matching the origin when looking up passwords using the default password store. * On Android, change the layout for label and sublabels in autofill popups. The feature is currently behind the flag --enable-password-autofill-psl-domain-matching BUG=176386 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208022

Patch Set 1 #

Patch Set 2 : Fixed compile issues for tests on Android. #

Patch Set 3 : Uncommented multiple_proguards_test_apk again #

Patch Set 4 : Fixed compile error for browsertests #

Total comments: 12

Patch Set 5 : Addressed all comments from patch set 4 #

Patch Set 6 : Rebased #

Patch Set 7 : Updated regexp, sanitized result, escaped form domain and added comments. #

Total comments: 48

Patch Set 8 : Addressed comments from isherman and aurimas from patch set 7 #

Patch Set 9 : Addressed comments from palmer #

Total comments: 11

Patch Set 10 : Addressed comments from isherman and aurimas #

Total comments: 8

Patch Set 11 : Added tests for login_database.cc and added comment about GetUniqueStatement. #

Patch Set 12 : Rebased #

Patch Set 13 : Stricter matching with port and scheme, more tests #

Total comments: 2

Patch Set 14 : Rebased #

Patch Set 15 : Fixed android label with #

Total comments: 2

Patch Set 16 : Fixed test comment, removed Android UI parts #

Patch Set 17 : Rebased #

Total comments: 46

Patch Set 18 : Addressed comments from isherman #

Total comments: 6

Patch Set 19 : Rebased, moved password_form_fill_data_unittest.cc and fixed compile errors #

Total comments: 9

Patch Set 20 : Rebased #

Patch Set 21 : Addressed comments from isherman and mdm #

Patch Set 22 : Fixed test expectation to match intention and comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+724 lines, -77 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/login_database.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/login_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +103 lines, -5 lines 0 comments Download
M chrome/browser/password_manager/login_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +273 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_form_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_form_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +21 lines, -8 lines 0 comments Download
M chrome/browser/password_manager/password_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -31 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +6 lines, -2 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +14 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_external_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +8 lines, -3 lines 0 comments Download
M components/autofill/core/common/autofill_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +9 lines, -2 lines 0 comments Download
M components/autofill/core/common/password_form_fill_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +25 lines, -13 lines 0 comments Download
M components/autofill/core/common/password_form_fill_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +20 lines, -2 lines 0 comments Download
A components/autofill/core/common/password_form_fill_data_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +170 lines, -0 lines 0 comments Download
M content/public/common/password_form.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +21 lines, -0 lines 0 comments Download
M content/public/common/password_form.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
nilesh
https://codereview.chromium.org/15660018/diff/7001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java (right): https://codereview.chromium.org/15660018/diff/7001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java#newcode41 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java:41: if (TextUtils.isEmpty(getItem(position).mLabel)) { better to store a a reference ...
7 years, 6 months ago (2013-06-04 23:02:36 UTC) #1
nyquist
Addressed all comments. https://codereview.chromium.org/15660018/diff/7001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java (right): https://codereview.chromium.org/15660018/diff/7001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java#newcode41 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java:41: if (TextUtils.isEmpty(getItem(position).mLabel)) { On 2013/06/04 23:02:36, ...
7 years, 6 months ago (2013-06-05 00:08:51 UTC) #2
nyquist
nileshagrawal: overall and Android-specific joi: For content/public/common isherman: For components/autofill, chrome/renderer/autofill, chrome/browser/password_manager aurimas: chrome/android/java/ tim: ...
7 years, 6 months ago (2013-06-05 00:28:18 UTC) #3
Jói
//content/public/common LGTM
7 years, 6 months ago (2013-06-05 16:28:43 UTC) #4
Ilya Sherman
+Mike for login db changes Has the security team approved this approach? If so, could ...
7 years, 6 months ago (2013-06-06 09:25:35 UTC) #5
aurimas (slooooooooow)
Your description claims: >* On Android, adds support for description label in autofill > popups. ...
7 years, 6 months ago (2013-06-06 16:52:26 UTC) #6
palmer
Haven't reviewed everything yet, but wanted to get you something. https://codereview.chromium.org/15660018/diff/37001/chrome/android/java/res/layout/autofill_text.xml File chrome/android/java/res/layout/autofill_text.xml (right): https://codereview.chromium.org/15660018/diff/37001/chrome/android/java/res/layout/autofill_text.xml#newcode30 ...
7 years, 6 months ago (2013-06-06 21:16:41 UTC) #7
nyquist
Addressed all comments. palmer, isherman, aurimas: PTAL https://codereview.chromium.org/15660018/diff/37001/chrome/android/java/res/layout/autofill_text.xml File chrome/android/java/res/layout/autofill_text.xml (right): https://codereview.chromium.org/15660018/diff/37001/chrome/android/java/res/layout/autofill_text.xml#newcode16 chrome/android/java/res/layout/autofill_text.xml:16: <TextView android:id="@+id/autofill_name" ...
7 years, 6 months ago (2013-06-07 22:51:09 UTC) #8
aurimas (slooooooooow)
https://codereview.chromium.org/15660018/diff/65001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java (right): https://codereview.chromium.org/15660018/diff/65001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java#newcode41 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillListAdapter.java:41: CharSequence label = getItem(position).mLabel; Could you also changed this ...
7 years, 6 months ago (2013-06-07 23:24:29 UTC) #9
Ilya Sherman
https://codereview.chromium.org/15660018/diff/37001/components/autofill/browser/autofill_external_delegate.cc File components/autofill/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/15660018/diff/37001/components/autofill/browser/autofill_external_delegate.cc#newcode158 components/autofill/browser/autofill_external_delegate.cc:158: element_bounds_, suggestions, origins, empty, password_ids, GetWeakPtr()); On 2013/06/07 22:51:10, ...
7 years, 6 months ago (2013-06-07 23:47:56 UTC) #10
nyquist
adressed all comments again https://chromiumcodereview.appspot.com/15660018/diff/37001/components/autofill/browser/autofill_external_delegate.cc File components/autofill/browser/autofill_external_delegate.cc (right): https://chromiumcodereview.appspot.com/15660018/diff/37001/components/autofill/browser/autofill_external_delegate.cc#newcode158 components/autofill/browser/autofill_external_delegate.cc:158: element_bounds_, suggestions, origins, empty, password_ids, ...
7 years, 6 months ago (2013-06-11 03:36:01 UTC) #11
palmer
https://codereview.chromium.org/15660018/diff/89001/chrome/browser/password_manager/login_database.cc File chrome/browser/password_manager/login_database.cc (right): https://codereview.chromium.org/15660018/diff/89001/chrome/browser/password_manager/login_database.cc#newcode389 chrome/browser/password_manager/login_database.cc:389: // We need to escape ., - and _ ...
7 years, 6 months ago (2013-06-11 18:55:45 UTC) #12
nyquist
PTAL. Added more tests, and adressed all comments. https://codereview.chromium.org/15660018/diff/89001/chrome/browser/password_manager/login_database.cc File chrome/browser/password_manager/login_database.cc (right): https://codereview.chromium.org/15660018/diff/89001/chrome/browser/password_manager/login_database.cc#newcode389 chrome/browser/password_manager/login_database.cc:389: // ...
7 years, 6 months ago (2013-06-11 23:54:42 UTC) #13
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/15660018/diff/119004/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java (right): https://chromiumcodereview.appspot.com/15660018/diff/119004/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java#newcode161 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java:161: private float getDesiredWidth(AutofillSuggestion[] data) { You have to change ...
7 years, 6 months ago (2013-06-13 01:27:28 UTC) #14
palmer
https://codereview.chromium.org/15660018/diff/140001/chrome/browser/password_manager/login_database_unittest.cc File chrome/browser/password_manager/login_database_unittest.cc (right): https://codereview.chromium.org/15660018/diff/140001/chrome/browser/password_manager/login_database_unittest.cc#newcode385 chrome/browser/password_manager/login_database_unittest.cc:385: // http://foo.com should match since the scheme is wrong. ...
7 years, 6 months ago (2013-06-15 00:03:26 UTC) #15
nyquist
Addressed all comments again. PTAL. https://chromiumcodereview.appspot.com/15660018/diff/119004/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java (right): https://chromiumcodereview.appspot.com/15660018/diff/119004/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java#newcode161 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java:161: private float getDesiredWidth(AutofillSuggestion[] data) ...
7 years, 6 months ago (2013-06-17 23:20:10 UTC) #16
palmer
lgtm
7 years, 6 months ago (2013-06-18 00:36:15 UTC) #17
Ilya Sherman
Thanks, this is looking much nicer :) https://chromiumcodereview.appspot.com/15660018/diff/148001/chrome/browser/password_manager/login_database.h File chrome/browser/password_manager/login_database.h (right): https://chromiumcodereview.appspot.com/15660018/diff/148001/chrome/browser/password_manager/login_database.h#newcode119 chrome/browser/password_manager/login_database.h:119: bool public_suffix_domain_matching_; ...
7 years, 6 months ago (2013-06-19 09:40:53 UTC) #18
nyquist
isherman: PTAL https://chromiumcodereview.appspot.com/15660018/diff/148001/chrome/browser/password_manager/login_database.h File chrome/browser/password_manager/login_database.h (right): https://chromiumcodereview.appspot.com/15660018/diff/148001/chrome/browser/password_manager/login_database.h#newcode119 chrome/browser/password_manager/login_database.h:119: bool public_suffix_domain_matching_; On 2013/06/19 09:40:54, Ilya Sherman ...
7 years, 6 months ago (2013-06-19 22:56:06 UTC) #19
Ilya Sherman
Thanks! LGTM for everything other than the login_database changes, which I'm not familiar enough with ...
7 years, 6 months ago (2013-06-19 23:41:13 UTC) #20
Mike Mammarella
Sorry for the extreme delay! I don't really work on this actively any more, so ...
7 years, 6 months ago (2013-06-20 20:20:22 UTC) #21
nyquist
Should be all done now. Please take a final look. https://chromiumcodereview.appspot.com/15660018/diff/161001/components/autofill/common/password_form_fill_data.cc File components/autofill/common/password_form_fill_data.cc (right): https://chromiumcodereview.appspot.com/15660018/diff/161001/components/autofill/common/password_form_fill_data.cc#newcode11 ...
7 years, 6 months ago (2013-06-21 21:01:27 UTC) #22
Ilya Sherman
https://chromiumcodereview.appspot.com/15660018/diff/164001/chrome/browser/password_manager/login_database.cc File chrome/browser/password_manager/login_database.cc (right): https://chromiumcodereview.appspot.com/15660018/diff/164001/chrome/browser/password_manager/login_database.cc#newcode419 chrome/browser/password_manager/login_database.cc:419: // We need to escape . and - in ...
7 years, 6 months ago (2013-06-21 21:16:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/15660018/188001
7 years, 6 months ago (2013-06-21 21:27:51 UTC) #24
nyquist
On 2013/06/21 21:16:24, Ilya Sherman wrote: > https://chromiumcodereview.appspot.com/15660018/diff/164001/chrome/browser/password_manager/login_database.cc > File chrome/browser/password_manager/login_database.cc (right): > > https://chromiumcodereview.appspot.com/15660018/diff/164001/chrome/browser/password_manager/login_database.cc#newcode419 ...
7 years, 6 months ago (2013-06-21 21:28:07 UTC) #25
commit-bot: I haz the power
Failed to trigger a try job on linux_rel HTTP Error 400: Bad Request
7 years, 6 months ago (2013-06-21 22:13:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/15660018/209001
7 years, 6 months ago (2013-06-21 22:14:06 UTC) #27
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, chrome_frame_net_tests, chrome_frame_tests, chrome_frame_unittests, content_browsertests, installer_util_unittests, ...
7 years, 6 months ago (2013-06-22 00:42:49 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/15660018/209001
7 years, 6 months ago (2013-06-22 06:51:50 UTC) #29
commit-bot: I haz the power
7 years, 6 months ago (2013-06-22 13:48:44 UTC) #30
Message was sent while issue was closed.
Change committed as 208022

Powered by Google App Engine
This is Rietveld 408576698