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

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

Issue 1568073002: Reduce string copies in GURL creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/blink/webmediaplayer_impl.cc ('k') | media/mojo/services/mojo_cdm_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_cdm.cc
diff --git a/media/mojo/services/mojo_cdm.cc b/media/mojo/services/mojo_cdm.cc
index 0b29b92c94cf83ddbe654da341d90e3bf1481b97..ef667f97dcff65b39b4c2d729061f5ce8b8e396c 100644
--- a/media/mojo/services/mojo_cdm.cc
+++ b/media/mojo/services/mojo_cdm.cc
@@ -184,7 +184,7 @@ void MojoCdm::OnSessionMessage(const mojo::String& session_id,
mojo::Array<uint8_t> message,
const mojo::String& legacy_destination_url) {
DVLOG(2) << __FUNCTION__;
- GURL verified_gurl = GURL(legacy_destination_url);
+ 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();
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/mojo/services/mojo_cdm_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698