Index: sandbox/win/src/win_utils.cc |
diff --git a/sandbox/win/src/win_utils.cc b/sandbox/win/src/win_utils.cc |
index c31c25e3af5f4705b6009007485dfc406ff62221..8e4da5fc97afcc5cbd6887880e9495f3404780cb 100644 |
--- a/sandbox/win/src/win_utils.cc |
+++ b/sandbox/win/src/win_utils.cc |
@@ -132,7 +132,8 @@ HKEY GetReservedKeyFromName(const base::string16& name) { |
bool ResolveRegistryName(base::string16 name, base::string16* resolved_name) { |
for (size_t i = 0; i < arraysize(kKnownKey); ++i) { |
- if (name.find(kKnownKey[i].name) == 0) { |
+ if (base::StartsWith(name, kKnownKey[i].name, |
+ base::CompareCase::SENSITIVE)) { |
HKEY key; |
DWORD disposition; |
if (ERROR_SUCCESS != ::RegCreateKeyEx(kKnownKey[i].key, L"", 0, NULL, 0, |