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

Unified Diff: media/mojo/services/mojo_cdm_service.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/mojo/services/mojo_cdm.cc ('k') | mojo/runner/android/android_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_cdm_service.cc
diff --git a/media/mojo/services/mojo_cdm_service.cc b/media/mojo/services/mojo_cdm_service.cc
index e2fa9e2490057b0fa115b5e5d3c941dcebfe402a..52bfee2fdecbdb999eefb6d2318ca433d9b93713 100644
--- a/media/mojo/services/mojo_cdm_service.cc
+++ b/media/mojo/services/mojo_cdm_service.cc
@@ -111,7 +111,7 @@ void MojoCdmService::Initialize(const mojo::String& key_system,
auto weak_this = weak_factory_.GetWeakPtr();
cdm_factory_->Create(
- key_system, GURL(security_origin), cdm_config.To<CdmConfig>(),
+ key_system, GURL(security_origin.get()), cdm_config.To<CdmConfig>(),
base::Bind(&MojoCdmService::OnSessionMessage, weak_this),
base::Bind(&MojoCdmService::OnSessionClosed, weak_this),
base::Bind(&MojoCdmService::OnLegacySessionError, weak_this),
« no previous file with comments | « media/mojo/services/mojo_cdm.cc ('k') | mojo/runner/android/android_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698