| Index: chrome/browser/payments/chrome_payment_request_delegate.cc
|
| diff --git a/chrome/browser/payments/chrome_payment_request_delegate.cc b/chrome/browser/payments/chrome_payment_request_delegate.cc
|
| index 7b228b62ad454ad055b80c06275f99d5162df4e4..72544464f1ad755fad9826034499e9cde167a7d4 100644
|
| --- a/chrome/browser/payments/chrome_payment_request_delegate.cc
|
| +++ b/chrome/browser/payments/chrome_payment_request_delegate.cc
|
| @@ -41,4 +41,10 @@ const std::string& ChromePaymentRequestDelegate::GetApplicationLocale() const {
|
| return g_browser_process->GetApplicationLocale();
|
| }
|
|
|
| +bool ChromePaymentRequestDelegate::IsIncognito() const {
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(web_contents_->GetBrowserContext());
|
| + return profile && profile->GetProfileType() == Profile::INCOGNITO_PROFILE;
|
| +}
|
| +
|
| } // namespace payments
|
|
|