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

Unified Diff: content/renderer/presentation/presentation_connection_client.cc

Issue 2174693004: [Presentation API] Add support to content/ for multiple URLs per PresentationRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 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/presentation/presentation_connection_client.cc
diff --git a/content/renderer/presentation/presentation_connection_client.cc b/content/renderer/presentation/presentation_connection_client.cc
index 72d1b68c95ee9f834a7e6affa259e78b00c96980..17e6226944bc1aece4f4ae53ae9f6c2a472f09b8 100644
--- a/content/renderer/presentation/presentation_connection_client.cc
+++ b/content/renderer/presentation/presentation_connection_client.cc
@@ -11,15 +11,14 @@ namespace content {
PresentationConnectionClient::PresentationConnectionClient(
blink::mojom::PresentationSessionInfoPtr session_info)
- : url_(blink::WebString::fromUTF8(session_info->url)),
+ : url_(blink::WebString::fromUTF8(session_info->url.spec())),
id_(blink::WebString::fromUTF8(session_info->id)) {}
PresentationConnectionClient::PresentationConnectionClient(
- const mojo::String& url,
+ const GURL& url,
const mojo::String& id)
- : url_(blink::WebString::fromUTF8(url)),
- id_(blink::WebString::fromUTF8(id)) {
-}
+ : url_(blink::WebString::fromUTF8(url.spec())),
+ id_(blink::WebString::fromUTF8(id)) {}
PresentationConnectionClient::~PresentationConnectionClient() {
}

Powered by Google App Engine
This is Rietveld 408576698