summaryrefslogtreecommitdiffstats
path: root/components/cdm
diff options
context:
space:
mode:
Diffstat (limited to 'components/cdm')
-rw-r--r--components/cdm/renderer/widevine_key_systems.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/cdm/renderer/widevine_key_systems.cc b/components/cdm/renderer/widevine_key_systems.cc
index d42ec7d..c913fe0 100644
--- a/components/cdm/renderer/widevine_key_systems.cc
+++ b/components/cdm/renderer/widevine_key_systems.cc
@@ -23,9 +23,9 @@ namespace cdm {
// Return |name|'s parent key system.
static std::string GetDirectParentName(std::string name) {
- int last_period = name.find_last_of('.');
- DCHECK_GT(last_period, 0);
- return name.substr(0, last_period);
+ size_t last_period = name.find_last_of('.');
+ DCHECK_GT(last_period, 0u);
+ return name.substr(0u, last_period);
}
void AddWidevineWithCodecs(WidevineCdmType widevine_cdm_type,