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

Unified Diff: media/mojo/clients/mojo_cdm.cc

Issue 2083433002: Mojo: Remove url type converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « media/mojo/clients/mojo_cdm.h ('k') | media/mojo/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_cdm.cc
diff --git a/media/mojo/clients/mojo_cdm.cc b/media/mojo/clients/mojo_cdm.cc
index 9ae21590b81ee478f51b1f0048a0ad8cc0686142..4dfcc4c7c5a10e674fb6ebdacd2dbec54e7f10f4 100644
--- a/media/mojo/clients/mojo_cdm.cc
+++ b/media/mojo/clients/mojo_cdm.cc
@@ -242,20 +242,13 @@ int MojoCdm::GetCdmId() const {
void MojoCdm::OnSessionMessage(const mojo::String& session_id,
mojom::CdmMessageType message_type,
mojo::Array<uint8_t> message,
- const mojo::String& legacy_destination_url) {
+ const GURL& legacy_destination_url) {
DVLOG(2) << __FUNCTION__;
DCHECK(thread_checker_.CalledOnValidThread());
- GURL verified_gurl = GURL(legacy_destination_url.get());
- if (!verified_gurl.is_valid() && !verified_gurl.is_empty()) {
- DLOG(WARNING) << "SessionMessage destination_url is invalid : "
- << verified_gurl.possibly_invalid_spec();
- verified_gurl = GURL::EmptyGURL(); // Replace invalid destination_url.
- }
-
session_message_cb_.Run(session_id,
static_cast<MediaKeys::MessageType>(message_type),
- message.storage(), verified_gurl);
+ message.storage(), legacy_destination_url);
}
void MojoCdm::OnSessionClosed(const mojo::String& session_id) {
« no previous file with comments | « media/mojo/clients/mojo_cdm.h ('k') | media/mojo/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698