New issue
Advanced search Search tips

Issue 704675 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug

Blocking:
issue 704706



Sign in to add a comment

[Payments] Desktop - Handle canMakePayment in incognito

Project Member Reported by ma...@chromium.org, Mar 23 2017

Issue description

Return the expected value in canMakePayment if the user is in incognito mode.

Rouslan: is there a final answer on what we should do here?
 

Comment 1 by se...@chromium.org, Mar 23 2017

Cc: se...@chromium.org
In the meantime, I suggest just not logging CanMakePayment related metrics while in Incognito mode.
Incognito mode behavior of web payments API:
1) PaymentRequest.canMakePayments() never returns false.
2) PaymentRequest.show() never returns NotSupportedError.

Comment 3 by se...@chromium.org, Mar 23 2017

My first idea would be to simply not record those, since the result is always the same. It might screw up the rest of our metrics.

However, if the number of people using PR in incognito is high enough, we will want to have their metrics too.

Therefore, I think we should split the CMP histograms in two with the suffix _inIncognitoMode or something.

WDYT?

Comment 4 by se...@chromium.org, Mar 23 2017

Oops, I just realized you are not talking about metrics... Doing metrics all day will do that to you :P sorry
Better to not record in incognito at all rather than record incognito metrics separately, IMHO.

Comment 6 by se...@chromium.org, Mar 23 2017

created  crbug.com/704689  to continue the metrics discussion.

Comment 7 by ma...@chromium.org, Mar 23 2017

Blocking: 704706
Project Member

Comment 8 by bugdroid1@chromium.org, Mar 24 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f39f46dcb8679cf14ccd7ff0cf205de49edea458

commit f39f46dcb8679cf14ccd7ff0cf205de49edea458
Author: mathp <mathp@chromium.org>
Date: Fri Mar 24 22:08:52 2017

[Payments] Desktop: never return false in incognito mode for canMakePayment

BUG= 704675 
TEST=browser_tests

Review-Url: https://codereview.chromium.org/2772103002
Cr-Commit-Position: refs/heads/master@{#459570}

[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/chrome/browser/payments/chrome_payment_request_delegate.cc
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/chrome/browser/payments/chrome_payment_request_delegate.h
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/chrome/browser/ui/views/payments/payment_request_browsertest_base.cc
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/chrome/browser/ui/views/payments/payment_request_browsertest_base.h
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/chrome/browser/ui/views/payments/payment_request_can_make_payment_browsertest.cc
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/components/payments/content/payment_request.cc
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/components/payments/content/payment_request_delegate.h
[modify] https://crrev.com/f39f46dcb8679cf14ccd7ff0cf205de49edea458/components/payments/content/payment_request_state.cc

Comment 9 by ma...@chromium.org, Mar 24 2017

Status: Fixed (was: Assigned)
Components: -UI>Browser>Autofill>Payments UI>Browser>Payments

Sign in to add a comment