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

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

Issue 2327993002: [PresentationAPI] Use KURL and WebURL in place of string types. (Closed)
Patch Set: Address imcheng@ comments 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: 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 c809d5fbe08165e93210f349302fa39e485c8f45..d0a63d72337a93d4c3d2c159395700a35583eb07 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
@@ -121,9 +121,9 @@ void PresentationController::setDefaultRequestUrl(const KURL& url)
return;
// TODO(crbug.com/627655): Accept multiple URLs per PresentationRequest.
- WebVector<WebString> presentationUrls(static_cast<size_t>(1));
+ WebVector<WebURL> presentationUrls(static_cast<size_t>(1));
if (url.isValid())
- presentationUrls[0] = url.getString();
+ presentationUrls[0] = url;
m_client->setDefaultPresentationUrls(presentationUrls);
}

Powered by Google App Engine
This is Rietveld 408576698