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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2715013002: [Payments] Put Web Payments feature on desktop behind flag (Closed)
Patch Set: Initial Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 5ff1d247bccc2ec4a7d10b7ffcbab6b67dbf605b..08462e0f0f951e4ce893594a1b1b4e8ce21bb233 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -3167,7 +3167,8 @@ void ChromeContentBrowserClient::RegisterRenderFrameMojoInterfaces(
web_contents->GetJavaInterfaces()->GetWeakPtr()));
}
#else
- if (AreExperimentalWebPlatformFeaturesEnabled()) {
+ if (AreExperimentalWebPlatformFeaturesEnabled() &&
+ base::FeatureList::IsEnabled(features::kWebPayments)) {
content::WebContents* web_contents =
content::WebContents::FromRenderFrameHost(render_frame_host);
if (web_contents) {

Powered by Google App Engine
This is Rietveld 408576698