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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationController.cpp

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
« no previous file with comments | « content/test/BUILD.gn ('k') | third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/presentation/PresentationController.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
index 3ff9b00212db0a302def6fefa3b2417e5e2545d2..1323487c6a67710df3b4970df753ec62999d6ff8 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
@@ -120,10 +120,12 @@ void PresentationController::setDefaultRequestUrl(const KURL& url)
if (!m_client)
return;
+ // TODO(crbug.com/627655): Accept multiple URLs per PresentationRequest.
+ WebVector<WebString> presentationUrls(static_cast<size_t>(1));
if (url.isValid())
- m_client->setDefaultPresentationUrl(url.getString());
- else
- m_client->setDefaultPresentationUrl(blink::WebString());
+ presentationUrls[0] = url.getString();
+
+ m_client->setDefaultPresentationUrls(presentationUrls);
}
void PresentationController::registerConnection(PresentationConnection* connection)
« no previous file with comments | « content/test/BUILD.gn ('k') | third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698