Index: content/browser/media/android/browser_media_player_manager.cc |
diff --git a/content/browser/media/android/browser_media_player_manager.cc b/content/browser/media/android/browser_media_player_manager.cc |
index ac37e4261fc9466daad23b098db620b086e9ad89..61e68ade0e34b9881ce1ba15f29c24c75bd86e73 100644 |
--- a/content/browser/media/android/browser_media_player_manager.cc |
+++ b/content/browser/media/android/browser_media_player_manager.cc |
@@ -391,16 +391,16 @@ void BrowserMediaPlayerManager::OnSessionMessage( |
int cdm_id, |
uint32 session_id, |
const std::vector<uint8>& message, |
- const std::string& destination_url) { |
- GURL destination_gurl(destination_url); |
- if (!destination_gurl.is_valid() && !destination_gurl.is_empty()) { |
+ const GURL& destination_url) { |
+ GURL verified_gurl = destination_url; |
+ if (!verified_gurl.is_valid() && !verified_gurl.is_empty()) { |
xhwang
2014/05/22 18:44:52
This seems redundant on Android. But I think keepi
|
DLOG(WARNING) << "SessionMessage destination_url is invalid : " |
- << destination_gurl.possibly_invalid_spec(); |
- destination_gurl = GURL::EmptyGURL(); // Replace invalid destination_url. |
+ << destination_url.possibly_invalid_spec(); |
+ verified_gurl = GURL::EmptyGURL(); // Replace invalid destination_url. |
} |
Send(new CdmMsg_SessionMessage( |
- routing_id(), cdm_id, session_id, message, destination_gurl)); |
+ routing_id(), cdm_id, session_id, message, verified_gurl)); |
} |
void BrowserMediaPlayerManager::OnSessionReady(int cdm_id, uint32 session_id) { |