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

Unified Diff: chrome/installer/util/shell_util.cc

Issue 1239493005: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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: chrome/installer/util/shell_util.cc
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index 655d2f891422a38e66fea842e97fe1db94018212..84ae4867f9bf737ecea586729021bb1b19c0c9f0 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -1105,7 +1105,8 @@ base::string16 ExtractShortcutNameFromProperties(
dist->GetShortcutName(BrowserDistribution::SHORTCUT_CHROME);
}
- if (!base::EndsWith(shortcut_name, installer::kLnkExt, false))
+ if (!base::EndsWith(shortcut_name, installer::kLnkExt,
+ base::CompareCase::INSENSITIVE_ASCII))
shortcut_name.append(installer::kLnkExt);
return shortcut_name;

Powered by Google App Engine
This is Rietveld 408576698