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

Unified Diff: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc

Issue 297703002: Using GURL in place of std::string for destination_url (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments, adding checks Created 6 years, 7 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: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
diff --git a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
index e98db7c824176aec0173cbbaca2497933cad167f..82e3b63ab2ed69235affbd384af4fcdd75a31fe3 100644
--- a/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
+++ b/media/cdm/ppapi/external_clear_key/clear_key_cdm.cc
@@ -562,7 +562,7 @@ void ClearKeyCdm::OnSessionCreated(uint32 session_id,
void ClearKeyCdm::OnSessionMessage(uint32 session_id,
const std::vector<uint8>& message,
- const std::string& destination_url) {
+ const GURL& destination_url) {
DVLOG(1) << "OnSessionMessage: " << message.size();
// Ignore the message when we are waiting to update the loadable session.
@@ -572,8 +572,8 @@ void ClearKeyCdm::OnSessionMessage(uint32 session_id,
host_->OnSessionMessage(session_id,
reinterpret_cast<const char*>(message.data()),
message.size(),
- destination_url.data(),
- destination_url.size());
+ destination_url.spec().data(),
+ destination_url.spec().size());
}
void ClearKeyCdm::OnSessionReady(uint32 session_id) {

Powered by Google App Engine
This is Rietveld 408576698