Chromium Code Reviews| Index: content/renderer/media/webcontentdecryptionmodulesession_impl.cc |
| diff --git a/content/renderer/media/webcontentdecryptionmodulesession_impl.cc b/content/renderer/media/webcontentdecryptionmodulesession_impl.cc |
| index 65975186a5f7185310f928fec0ef84dfc9331d61..fb2634217e43f132e4c4d4d05a161c50ec9ca008 100644 |
| --- a/content/renderer/media/webcontentdecryptionmodulesession_impl.cc |
| +++ b/content/renderer/media/webcontentdecryptionmodulesession_impl.cc |
| @@ -15,6 +15,8 @@ |
| namespace content { |
| +const char kNewSessionUMASuffix[] = ".NewSession"; |
|
ddorwin
2014/08/08 03:35:40
s/Suffix/Name/ - you can't have a prefix and suffi
ddorwin
2014/08/08 03:35:40
The actual method is createSession. It was just od
sandersd (OOO until July 31)
2014/08/08 17:22:24
Done.
sandersd (OOO until July 31)
2014/08/08 17:22:24
Done.
|
| + |
| // For backwards compatibility with blink not using |
| // WebContentDecryptionModuleResult, reserve an index for |outstanding_results_| |
| // that will not be used when adding a WebContentDecryptionModuleResult. |
| @@ -107,7 +109,8 @@ void WebContentDecryptionModuleSessionImpl::initializeNewSession( |
| weak_ptr_factory_.GetWeakPtr(), |
| kReservedIndex), |
| base::Bind(&WebContentDecryptionModuleSessionImpl::OnSessionError, |
| - weak_ptr_factory_.GetWeakPtr()))); |
| + weak_ptr_factory_.GetWeakPtr()), |
| + adapter_->GetKeySystemUMAPrefix() + kNewSessionUMASuffix)); |
| adapter_->InitializeNewSession(init_data_type_as_ascii, |
| init_data, |
| init_data_length, |
| @@ -168,7 +171,8 @@ void WebContentDecryptionModuleSessionImpl::initializeNewSession( |
| result_index), |
| base::Bind(&WebContentDecryptionModuleSessionImpl::SessionError, |
| weak_ptr_factory_.GetWeakPtr(), |
| - result_index))); |
| + result_index), |
| + adapter_->GetKeySystemUMAPrefix() + kNewSessionUMASuffix)); |
| adapter_->InitializeNewSession(init_data_type_as_ascii, |
| init_data, |
| init_data_length, |