Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2571)

Unified Diff: chrome/browser/shell_integration_linux.cc

Issue 2127373006: Use base::StartWith() in more places when appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, resolve conflict Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}
« no previous file with comments | « chrome/browser/memory/tab_manager_delegate_chromeos.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698