Index: chrome/installer/util/shell_util.cc |
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc |
index 55e576aa3a694f870b0deb4166d28a81b8bc8113..98c137f7431acd184b9db038ddd11eb1832dca6a 100644 |
--- a/chrome/installer/util/shell_util.cc |
+++ b/chrome/installer/util/shell_util.cc |
@@ -153,8 +153,10 @@ class RegistryEntry { |
bool found = false; |
if (_is_string) { |
std::wstring read_value; |
- found = key.ReadValue(_name.c_str(), &read_value) && |
- read_value == _value; |
+ found = (key.ReadValue(_name.c_str(), &read_value)) && |
+ (read_value.size() == _value.size()) && |
+ (std::equal(_value.begin(), _value.end(), read_value.begin(), |
+ CaseInsensitiveCompare<wchar_t>())); |
} else { |
DWORD read_value; |
found = key.ReadValueDW(_name.c_str(), &read_value) && |