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

Unified Diff: cloud_print/service/win/service_utils.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: cloud_print/service/win/service_utils.cc
diff --git a/cloud_print/service/win/service_utils.cc b/cloud_print/service/win/service_utils.cc
index 69324474d9764b89cf0390d3b580f4e0899c8d81..e64b5cb3b2d8ad17b2438e710de95a8d6dd0fe19 100644
--- a/cloud_print/service/win/service_utils.cc
+++ b/cloud_print/service/win/service_utils.cc
@@ -28,7 +28,8 @@ base::string16 GetLocalComputerName() {
base::string16 ReplaceLocalHostInName(const base::string16& user_name) {
static const wchar_t kLocalDomain[] = L".\\";
- if (base::StartsWith(user_name, kLocalDomain, true)) {
+ if (base::StartsWith(user_name, kLocalDomain,
+ base::CompareCase::SENSITIVE)) {
return GetLocalComputerName() +
user_name.substr(arraysize(kLocalDomain) - 2);
}
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | components/devtools_http_handler/devtools_http_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698