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

Unified Diff: content/browser/media/android/browser_media_player_manager.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: removing un-necessary includes 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: 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..536c70f3268822935d45f13e1ff8d4262c08ba4d 100644
--- a/content/browser/media/android/browser_media_player_manager.cc
+++ b/content/browser/media/android/browser_media_player_manager.cc
@@ -391,16 +391,17 @@ 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) {
+ if (!destination_url.is_valid() && !destination_url.is_empty()) {
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();
+ Send(new CdmMsg_SessionMessage(
+ routing_id(), cdm_id, session_id, message, GURL::EmptyGURL()));
xhwang 2014/05/21 16:59:01 You could still use a "verified_gurl" so that you
amogh.bihani 2014/05/22 11:59:49 I have made the change. I did this as I was thinki
+ return;
}
Send(new CdmMsg_SessionMessage(
- routing_id(), cdm_id, session_id, message, destination_gurl));
+ routing_id(), cdm_id, session_id, message, destination_url));
}
void BrowserMediaPlayerManager::OnSessionReady(int cdm_id, uint32 session_id) {

Powered by Google App Engine
This is Rietveld 408576698