Index: chrome/browser/shell_integration_linux.cc |
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc |
index 555b2d21010d462039d5cf75749a0b5820cdffd4..b10350070c9f307dad0a4ad62195b202926b0ec2 100644 |
--- a/chrome/browser/shell_integration_linux.cc |
+++ b/chrome/browser/shell_integration_linux.cc |
@@ -202,7 +202,9 @@ DefaultWebClientState GetIsDefaultWebClient(const std::string& protocol) { |
} |
// Allow any reply that starts with "yes". |
- return (reply.find("yes") == 0) ? IS_DEFAULT : NOT_DEFAULT; |
+ return base::StartsWith(reply, "yes", base::CompareCase::SENSITIVE) |
+ ? IS_DEFAULT |
+ : NOT_DEFAULT; |
#endif |
} |