Index: components/nacl/renderer/ppb_nacl_private_impl.cc |
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc |
index 4daa4c722578306b04d2c0a0fce759a968f6123f..7d747e9a141a81a0643bc8c9ac0fc8fbb7fd088e 100644 |
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc |
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc |
@@ -1469,7 +1469,8 @@ void DownloadFile(PP_Instance instance, |
// Handle special PNaCl support files which are installed on the user's |
// machine. |
- if (url.find(kPNaClTranslatorBaseUrl, 0) == 0) { |
+ if (base::StartsWith(url, kPNaClTranslatorBaseUrl, |
+ base::CompareCase::SENSITIVE)) { |
PP_NaClFileInfo file_info = kInvalidNaClFileInfo; |
PP_FileHandle handle = GetReadonlyPnaclFd(url.c_str(), |
false /* is_executable */, |