Chromium Code Reviews| Index: extensions/browser/api/cast_channel/cast_auth_util.cc |
| diff --git a/extensions/browser/api/cast_channel/cast_auth_util.cc b/extensions/browser/api/cast_channel/cast_auth_util.cc |
| index e2beca1870179241a76f4a2aab586859b8fca55b..5ea6a3e3325a088609d106a7af8eec8501e1c45f 100644 |
| --- a/extensions/browser/api/cast_channel/cast_auth_util.cc |
| +++ b/extensions/browser/api/cast_channel/cast_auth_util.cc |
| @@ -20,7 +20,7 @@ namespace { |
| const char* const kParseErrorPrefix = "Failed to parse auth message: "; |
| -const unsigned char kAudioOnlyPolicy[] = |
| +const char kAudioOnlyPolicy[] = |
|
mark a. foltz
2015/01/29 19:43:08
This has to remain unsigned right? It breaks comp
Kevin M
2015/01/30 00:11:10
Done.
|
| {0x06, 0x0A, 0x2B, 0x06, 0x01, 0x04, 0x01, 0xD6, 0x79, 0x02, 0x05, 0x02}; |
| namespace cast_crypto = ::extensions::core_api::cast_crypto; |
| @@ -137,8 +137,9 @@ AuthResult AuthenticateChallengeReply(const CastMessage& challenge_reply, |
| return result; |
| } |
| - if (response.client_auth_certificate().find(reinterpret_cast<const char*>( |
| - kAudioOnlyPolicy)) != std::string::npos) { |
| + if (response.client_auth_certificate().find(std::string( |
|
mark a. foltz
2015/01/29 19:43:08
For readability, consider declaring a separate con
Kevin M
2015/01/30 00:11:10
Done.
|
| + kAudioOnlyPolicy, (arraysize(kAudioOnlyPolicy) / |
|
mark a. foltz
2015/01/29 19:43:08
Extra ()
Kevin M
2015/01/30 00:11:10
Done.
|
| + sizeof(unsigned char)))) != std::string::npos) { |
| result.channel_policies |= AuthResult::POLICY_AUDIO_ONLY; |
| } |