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 50c9ffe11a521744f7d32d63f3a0e44f93e28183..eedc35bcd77be7f9106106484076241722c9eedf 100644 |
--- a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp |
+++ b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp |
@@ -6,6 +6,8 @@ |
#include "core/frame/LocalFrame.h" |
#include "modules/presentation/PresentationConnection.h" |
+#include "public/platform/WebString.h" |
+#include "public/platform/WebVector.h" |
#include "public/platform/modules/presentation/WebPresentationClient.h" |
#include "wtf/PtrUtil.h" |
#include <memory> |
@@ -115,15 +117,16 @@ void PresentationController::setPresentation(Presentation* presentation) |
m_presentation = presentation; |
} |
-void PresentationController::setDefaultRequestUrl(const KURL& url) |
+void PresentationController::setDefaultRequestUrls(const WTF::Vector<KURL>& urls) |
{ |
if (!m_client) |
return; |
- if (url.isValid()) |
- m_client->setDefaultPresentationUrl(url.getString()); |
- else |
- m_client->setDefaultPresentationUrl(blink::WebString()); |
+ WebVector<WebString> data(urls.size()); |
+ for (size_t i = 0; i < urls.size(); ++i) { |
+ data[i] = urls[i].getString(); |
+ } |
mlamouri (slow - plz ping)
2016/07/19 12:45:03
style: maybe no { } ?
mark a. foltz
2016/07/19 17:38:47
Done.
|
+ m_client->setDefaultPresentationUrls(data); |
} |
void PresentationController::registerConnection(PresentationConnection* connection) |