diff options
Diffstat (limited to 'chrome/browser/shell_integration_win.cc')
-rw-r--r-- | chrome/browser/shell_integration_win.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc index f52a434..b340c95 100644 --- a/chrome/browser/shell_integration_win.cc +++ b/chrome/browser/shell_integration_win.cc @@ -115,11 +115,7 @@ ShellIntegration::DefaultBrowserState ShellIntegration::IsDefaultBrowser() { std::wstring short_path; GetShortPathName(command_line.program().c_str(), WriteInto(&short_path, MAX_PATH), MAX_PATH); - if ((short_path.size() != short_app_path.size()) || - (!std::equal(short_path.begin(), - short_path.end(), - short_app_path.begin(), - CaseInsensitiveCompare<wchar_t>()))) + if (!FilePath::CompareEqualIgnoreCase(short_path, short_app_path)) return NOT_DEFAULT_BROWSER; } } |