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

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: Fix constant formatting. Created 4 years, 4 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/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)

Powered by Google App Engine
This is Rietveld 408576698