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

Issue 896583003: Add risk data to getrealpan request. (Closed)

Created:
5 years, 10 months ago by Evan Stade
Modified:
5 years, 10 months ago
Reviewers:
aruslan, brettw, jam
CC:
chromium-reviews, creis+watch_chromium.org, browser-components-watch_chromium.org, nasko+codewatch_chromium.org, darin-cc_chromium.org, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add risk data to getrealpan request. BUG=451286 Committed: https://crrev.com/028ecc84877a5973485d9deb80e871155219bc02 Cr-Commit-Position: refs/heads/master@{#315386}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : no changes to content #

Patch Set 4 : merge #

Patch Set 5 : git add file #

Patch Set 6 : gn compile #

Patch Set 7 : compile risk on android #

Patch Set 8 : fixes for android #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -99 lines) Patch
A chrome/browser/autofill/risk_util.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/autofill/risk_util.cc View 1 2 3 4 5 6 7 1 chunk +90 lines, -0 lines 2 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 8 chunks +5 lines, -45 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 5 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc View 4 chunks +25 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill.gypi View 1 2 3 4 5 6 2 chunks +1 line, -9 lines 0 comments Download
M components/autofill/content/browser/risk/fingerprint.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 3 1 chunk +1 line, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M components/autofill/core/browser/card_unmask_delegate.h View 1 chunk +16 lines, -3 lines 0 comments Download
A components/autofill/core/browser/card_unmask_delegate.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M components/autofill/core/browser/wallet/real_pan_wallet_client.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M components/autofill/core/browser/wallet/real_pan_wallet_client.cc View 1 2 3 3 chunks +5 lines, -8 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 35 (11 generated)
Evan Stade
+jam for content/ +brettw for the rest
5 years, 10 months ago (2015-02-02 22:21:41 UTC) #2
brettw
https://codereview.chromium.org/896583003/diff/20001/chrome/browser/autofill/risk_util.cc File chrome/browser/autofill/risk_util.cc (right): https://codereview.chromium.org/896583003/diff/20001/chrome/browser/autofill/risk_util.cc#newcode45 chrome/browser/autofill/risk_util.cc:45: Browser* browser = chrome::FindBrowserWithWebContents(web_contents); This function is really unfortunate. ...
5 years, 10 months ago (2015-02-02 23:44:10 UTC) #3
Evan Stade
https://codereview.chromium.org/896583003/diff/20001/chrome/browser/autofill/risk_util.cc File chrome/browser/autofill/risk_util.cc (right): https://codereview.chromium.org/896583003/diff/20001/chrome/browser/autofill/risk_util.cc#newcode45 chrome/browser/autofill/risk_util.cc:45: Browser* browser = chrome::FindBrowserWithWebContents(web_contents); On 2015/02/02 23:44:10, brettw wrote: ...
5 years, 10 months ago (2015-02-02 23:47:52 UTC) #4
brettw
Can we pass the BrowserContext through this system to avoid this? Looking up a random ...
5 years, 10 months ago (2015-02-03 00:03:56 UTC) #5
brettw
Can we pass the BrowserContext through this system to avoid this? Looking up a random ...
5 years, 10 months ago (2015-02-03 00:03:56 UTC) #6
brettw
LGTM, I misunderstood how the code works
5 years, 10 months ago (2015-02-03 00:11:53 UTC) #7
jam
https://codereview.chromium.org/896583003/diff/20001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/896583003/diff/20001/content/public/browser/web_contents.h#newcode411 content/public/browser/web_contents.h:411: virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0; they don't have ...
5 years, 10 months ago (2015-02-03 05:53:43 UTC) #8
Evan Stade
https://codereview.chromium.org/896583003/diff/20001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/896583003/diff/20001/content/public/browser/web_contents.h#newcode411 content/public/browser/web_contents.h:411: virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0; On 2015/02/03 05:53:43, ...
5 years, 10 months ago (2015-02-03 17:48:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896583003/40001
5 years, 10 months ago (2015-02-03 20:39:06 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/54968) ios_rel_device_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ng/builds/6910) ios_rel_device_ninja_ng ...
5 years, 10 months ago (2015-02-03 20:41:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896583003/60001
5 years, 10 months ago (2015-02-03 21:03:40 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja_ng/builds/6914)
5 years, 10 months ago (2015-02-03 21:10:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896583003/80001
5 years, 10 months ago (2015-02-04 20:31:07 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/55888)
5 years, 10 months ago (2015-02-04 20:40:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896583003/100001
5 years, 10 months ago (2015-02-04 21:46:11 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/52141)
5 years, 10 months ago (2015-02-04 22:13:38 UTC) #25
jam
On 2015/02/03 17:48:40, Evan Stade wrote: > https://codereview.chromium.org/896583003/diff/20001/content/public/browser/web_contents.h > File content/public/browser/web_contents.h (right): > > https://codereview.chromium.org/896583003/diff/20001/content/public/browser/web_contents.h#newcode411 ...
5 years, 10 months ago (2015-02-05 22:58:17 UTC) #26
Evan Stade
Had to make a couple minor changes for Android. aruslan, please review changes to: - ...
5 years, 10 months ago (2015-02-06 00:15:46 UTC) #28
Evan Stade
On 2015/02/06 00:15:46, Evan Stade wrote: > Had to make a couple minor changes for ...
5 years, 10 months ago (2015-02-06 21:42:34 UTC) #29
Evan Stade
On 2015/02/06 21:42:34, Evan Stade wrote: > On 2015/02/06 00:15:46, Evan Stade wrote: > > ...
5 years, 10 months ago (2015-02-09 20:46:48 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896583003/140001
5 years, 10 months ago (2015-02-09 20:47:26 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-09 20:53:35 UTC) #33
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/028ecc84877a5973485d9deb80e871155219bc02 Cr-Commit-Position: refs/heads/master@{#315386}
5 years, 10 months ago (2015-02-09 21:00:21 UTC) #34
aruslan
5 years, 10 months ago (2015-02-10 00:18:21 UTC) #35
Message was sent while issue was closed.
(lgtm android)

https://codereview.chromium.org/896583003/diff/140001/chrome/browser/autofill...
File chrome/browser/autofill/risk_util.cc (right):

https://codereview.chromium.org/896583003/diff/140001/chrome/browser/autofill...
chrome/browser/autofill/risk_util.cc:66: // No easy way to get window bounds on
Android, and that signal isn't very
On 2015/02/06 00:15:46, Evan Stade wrote:
> aruslan@, is there an easy way to get the browser window bounds on Android?
> 
> Risk team says it's not necessary (not particularly useful on mobile), so if
> not, we can just skip over it.

You might use the size of the display with and without window decorations using
DeviceDisplayInfo().GetPhysicalDisplayHeight() etc.

It wouldn't work in all cases (e.g. in the case of multi-window devices etc),
but it's a good first approximation and it's an easy way.

Powered by Google App Engine
This is Rietveld 408576698