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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.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/PresentationConnection.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
index 8149c1449ecf0bd8fc1e7bfd8f172c60f8604ff9..3f643022b97f7f1dd395c36ba8e4746b7748b5ce 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
@@ -157,7 +157,7 @@ private:
std::unique_ptr<FileReaderLoader> m_loader;
};
-PresentationConnection::PresentationConnection(LocalFrame* frame, const String& id, const String& url)
+PresentationConnection::PresentationConnection(LocalFrame* frame, const String& id, const KURL& url)
: DOMWindowProperty(frame)
, m_id(id)
, m_url(url)
@@ -406,7 +406,7 @@ void PresentationConnection::terminate()
bool PresentationConnection::matches(WebPresentationConnectionClient* client) const
{
- return client && m_url == static_cast<String>(client->getUrl()) && m_id == static_cast<String>(client->getId());
+ return client && m_url == KURL(client->getUrl()) && m_id == static_cast<String>(client->getId());
dcheng 2016/09/14 20:07:27 Can we tag WebPresentationConnectionClient::getUrl
}
void PresentationConnection::didChangeState(WebPresentationConnectionState state)

Powered by Google App Engine
This is Rietveld 408576698