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

Unified Diff: content/renderer/service_worker/service_worker_context_client.cc

Issue 2893823004: [Payments] Implement openWindow for service worker based payment handler (Closed)
Patch Set: address comments 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: content/renderer/service_worker/service_worker_context_client.cc
diff --git a/content/renderer/service_worker/service_worker_context_client.cc b/content/renderer/service_worker/service_worker_context_client.cc
index f181da5c2618be053c1e67c56ed03a0157a5f21a..034819424761066986bdd175685b3de6ae6b26cb 100644
--- a/content/renderer/service_worker/service_worker_context_client.cc
+++ b/content/renderer/service_worker/service_worker_context_client.cc
@@ -632,12 +632,13 @@ void ServiceWorkerContextClient::GetClients(
}
void ServiceWorkerContextClient::OpenWindow(
+ const blink::WebURL& redirect_url,
const blink::WebURL& url,
std::unique_ptr<blink::WebServiceWorkerClientCallbacks> callbacks) {
DCHECK(callbacks);
int request_id = context_->client_callbacks.Add(std::move(callbacks));
- Send(new ServiceWorkerHostMsg_OpenWindow(
- GetRoutingID(), request_id, url));
+ Send(new ServiceWorkerHostMsg_OpenWindow(GetRoutingID(), request_id,
+ redirect_url, url));
}
void ServiceWorkerContextClient::SetCachedMetadata(const blink::WebURL& url,

Powered by Google App Engine
This is Rietveld 408576698