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

Issue 2672623005: Record Autofill form events specially for nonsecure pages (Closed)

Created:
3 years, 10 months ago by estark
Modified:
3 years, 10 months ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, pkl (ping after 24h if needed), browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, marq+watch_chromium.org, noyau+watch_chromium.org, asvitkine+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, android-webview-reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Record Autofill form events specially for nonsecure pages The Form-Not-Secure experiment shows special "Payment not secure" warnings for credit card forms on HTTP pages. This CL records credit card autofill form events in a special histogram broken out for nonsecure pages, to measure the impact of these "Payment not secure" warnings on form interactions. To do so, the FormEventLogger needs to know whether the main frame URL is secure, at a point at which it doesn't have access to a form origin URL. iOS is the only platform on which IsContextSecure used the form_origin parameter, and there was an existing TODO to fix that (https://crbug.com/505388). So this CL removes the form_origin parameter from IsContextSecure, fixes the iOS TODO, and uses the resulting IsContextSecure method to record nonsecure form metrics. BUG=677291, 687823, 505388 Review-Url: https://codereview.chromium.org/2672623005 Cr-Commit-Position: refs/heads/master@{#449402} Committed: https://chromium.googlesource.com/chromium/src/+/57464d6c82bea1c759874da3101135e1ae1494eb

Patch Set 1 #

Patch Set 2 : remove redundant AwAutofillClient code #

Patch Set 3 : add ios dep #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : sebsg comments #

Total comments: 4

Patch Set 6 : mathp comments #

Patch Set 7 : rebase #

Patch Set 8 : ios fix #

Patch Set 9 : fix autofillassistant call site #

Total comments: 14

Patch Set 10 : jdonnelly, eugenebut comments #

Patch Set 11 : rebase #

Patch Set 12 : rebase fixup #

Patch Set 13 : fix test added in rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -26 lines) Patch
M android_webview/native/aw_autofill_client.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M android_webview/native/aw_autofill_client.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_assistant.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_client.h View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.cc View 1 2 3 4 5 3 chunks +10 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics_unittest.cc View 1 2 3 4 5 3 chunks +114 lines, -0 lines 0 comments Download
M components/autofill/core/browser/test_autofill_client.h View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M components/autofill/core/browser/test_autofill_client.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/autofill/autofill_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/autofill/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/autofill/autofill_client_ios.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/autofill/autofill_client_ios.mm View 1 2 3 4 5 6 7 8 9 10 3 chunks +20 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 2 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 78 (55 generated)
estark
sebsg, can you please take a look? Thanks.
3 years, 10 months ago (2017-02-03 16:57:41 UTC) #16
sebsg
Nice work! https://codereview.chromium.org/2672623005/diff/60001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2672623005/diff/60001/components/autofill/core/browser/autofill_manager.cc#newcode1485 components/autofill/core/browser/autofill_manager.cc:1485: credit_card_form_event_logger_->set_is_main_url_secure( Can you move this with the ...
3 years, 10 months ago (2017-02-03 19:28:34 UTC) #17
estark
+estade for chrome/browser/ui/autofill +jdonnelly for ios +sgurun for android_webview Thanks! https://codereview.chromium.org/2672623005/diff/60001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/2672623005/diff/60001/components/autofill/core/browser/autofill_manager.cc#newcode1485 ...
3 years, 10 months ago (2017-02-04 02:16:13 UTC) #21
Mathieu
Hi Emily, I'm not sure about adding IsMainUrlSecure, mostly equivalent to the existing IsContextSecure, if ...
3 years, 10 months ago (2017-02-04 02:34:57 UTC) #24
estark
https://codereview.chromium.org/2672623005/diff/80001/ios/chrome/browser/ui/autofill/autofill_client_ios.mm File ios/chrome/browser/ui/autofill/autofill_client_ios.mm (right): https://codereview.chromium.org/2672623005/diff/80001/ios/chrome/browser/ui/autofill/autofill_client_ios.mm#newcode189 ios/chrome/browser/ui/autofill/autofill_client_ios.mm:189: // TODO (sigbjorn): Return if the context is secure, ...
3 years, 10 months ago (2017-02-06 22:51:02 UTC) #33
sgurun-gerrit only
aw lgtm
3 years, 10 months ago (2017-02-07 16:14:59 UTC) #40
Mathieu
On 2017/02/07 16:14:59, sgurun wrote: > aw lgtm LGTM, but the description is outdated. Thanks!
3 years, 10 months ago (2017-02-07 17:27:14 UTC) #41
Justin Donnelly
+eugenebut (please double-check that usage of NavigationManager in autofill_client_ios.mm is correct) ios lgtm but please ...
3 years, 10 months ago (2017-02-07 17:42:45 UTC) #43
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2672623005/diff/160001/ios/chrome/browser/ui/autofill/autofill_client_ios.mm File ios/chrome/browser/ui/autofill/autofill_client_ios.mm (right): https://codereview.chromium.org/2672623005/diff/160001/ios/chrome/browser/ui/autofill/autofill_client_ios.mm#newcode30 ios/chrome/browser/ui/autofill/autofill_client_ios.mm:30: #include "ios/web/public/navigation_item.h" s/include/import https://google.github.io/styleguide/objcguide.xml#_import_and__include https://codereview.chromium.org/2672623005/diff/160001/ios/chrome/browser/ui/autofill/autofill_client_ios.mm#newcode31 ios/chrome/browser/ui/autofill/autofill_client_ios.mm:31: #include "ios/web/public/navigation_manager.h" ditto ...
3 years, 10 months ago (2017-02-07 18:47:09 UTC) #44
estark
https://codereview.chromium.org/2672623005/diff/160001/ios/chrome/browser/ui/autofill/autofill_client_ios.mm File ios/chrome/browser/ui/autofill/autofill_client_ios.mm (right): https://codereview.chromium.org/2672623005/diff/160001/ios/chrome/browser/ui/autofill/autofill_client_ios.mm#newcode30 ios/chrome/browser/ui/autofill/autofill_client_ios.mm:30: #include "ios/web/public/navigation_item.h" On 2017/02/07 18:47:08, Eugene But wrote: > ...
3 years, 10 months ago (2017-02-07 22:40:34 UTC) #47
estark
+dvadym for the small change to components/password_manager, +jwd for histograms.xml
3 years, 10 months ago (2017-02-07 22:42:26 UTC) #50
Eugene But (OOO till 7-30)
Thanks! ios lgtm
3 years, 10 months ago (2017-02-07 23:15:02 UTC) #51
dvadym
components/password_manager/* LGTM
3 years, 10 months ago (2017-02-08 09:25:05 UTC) #54
sebsg
lgtm thanks!
3 years, 10 months ago (2017-02-09 14:28:08 UTC) #55
jwd
lgtm
3 years, 10 months ago (2017-02-09 16:05:35 UTC) #56
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/2672623005/180001
3 years, 10 months ago (2017-02-09 18:08:35 UTC) #59
commit-bot: I haz the power
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/150565) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-09 18:11:31 UTC) #61
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/2672623005/220001
3 years, 10 months ago (2017-02-09 18:19:58 UTC) #65
commit-bot: I haz the power
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/150575) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-09 18:29:35 UTC) #67
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/2672623005/240001
3 years, 10 months ago (2017-02-09 18:33:29 UTC) #70
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/12196)
3 years, 10 months ago (2017-02-09 19:13:07 UTC) #72
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/2672623005/260001
3 years, 10 months ago (2017-02-09 19:35:43 UTC) #75
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 20:50:45 UTC) #78
Message was sent while issue was closed.
Committed patchset #13 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/57464d6c82bea1c759874da31011...

Powered by Google App Engine
This is Rietveld 408576698