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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 2893823004: [Payments] Implement openWindow for service worker based payment handler (Closed)
Patch Set: correct file changes 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
index 02a8258a0d7a3b6f0902f46e3a67cacb19b15791..6c8281bf5a6a6a6126f09f6ad9bdf3e6201e4e8e 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
@@ -62,7 +62,14 @@ void ServiceWorkerGlobalScopeClientImpl::GetClients(
void ServiceWorkerGlobalScopeClientImpl::OpenWindow(
const WebURL& url,
std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) {
- client_.OpenWindow(url, std::move(callbacks));
+ client_.OpenWindow(WebURL(), url, std::move(callbacks));
+}
+
+void ServiceWorkerGlobalScopeClientImpl::OpenWindowForPaymentHandle(
+ const WebURL& redirect_url,
+ const WebURL& url_to_open,
+ std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) {
+ client_.OpenWindow(redirect_url, url_to_open, std::move(callbacks));
}
void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url,

Powered by Google App Engine
This is Rietveld 408576698