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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: frame Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/payments/payment_request_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 3208 matching lines...) Expand 10 before | Expand all | Expand 10 after
3219 if (web_contents) { 3219 if (web_contents) {
3220 registry->AddInterface( 3220 registry->AddInterface(
3221 base::Bind(&ForwardShareServiceRequest, 3221 base::Bind(&ForwardShareServiceRequest,
3222 web_contents->GetJavaInterfaces()->GetWeakPtr())); 3222 web_contents->GetJavaInterfaces()->GetWeakPtr()));
3223 } 3223 }
3224 #else 3224 #else
3225 if (base::FeatureList::IsEnabled(features::kWebPayments)) { 3225 if (base::FeatureList::IsEnabled(features::kWebPayments)) {
3226 content::WebContents* web_contents = 3226 content::WebContents* web_contents =
3227 content::WebContents::FromRenderFrameHost(render_frame_host); 3227 content::WebContents::FromRenderFrameHost(render_frame_host);
3228 if (web_contents) { 3228 if (web_contents) {
3229 registry->AddInterface(base::Bind( 3229 registry->AddInterface(base::Bind(payments::CreatePaymentRequest,
3230 payments::CreatePaymentRequestForWebContents, web_contents)); 3230 render_frame_host, web_contents));
3231 } 3231 }
3232 } 3232 }
3233 #endif 3233 #endif
3234 3234
3235 #if defined(OS_LINUX) || defined(OS_WIN) 3235 #if defined(OS_LINUX) || defined(OS_WIN)
3236 if (!ChromeOriginTrialPolicy().IsFeatureDisabled("WebShare")) { 3236 if (!ChromeOriginTrialPolicy().IsFeatureDisabled("WebShare")) {
3237 registry->AddInterface(base::Bind(&ShareServiceImpl::Create)); 3237 registry->AddInterface(base::Bind(&ShareServiceImpl::Create));
3238 } 3238 }
3239 #endif 3239 #endif
3240 } 3240 }
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
3609 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3609 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3610 return variations::GetVariationParamValue( 3610 return variations::GetVariationParamValue(
3611 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3611 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3612 } 3612 }
3613 3613
3614 // static 3614 // static
3615 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3615 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3616 const storage::QuotaSettings* settings) { 3616 const storage::QuotaSettings* settings) {
3617 g_default_quota_settings = settings; 3617 g_default_quota_settings = settings;
3618 } 3618 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/payments/payment_request_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698