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

Unified Diff: chrome/common/importer/firefox_importer_utils.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/common/importer/firefox_importer_utils.cc
diff --git a/chrome/common/importer/firefox_importer_utils.cc b/chrome/common/importer/firefox_importer_utils.cc
index 2ca5c4c5d68938b166ee31175255984aa8a79d76..46e120c304e4cfeace63f1663c7e0a201cfc8dec 100644
--- a/chrome/common/importer/firefox_importer_utils.cc
+++ b/chrome/common/importer/firefox_importer_utils.cc
@@ -116,7 +116,8 @@ bool ComposeMacAppPath(const std::string& path_from_file,
// append Contents/MacOS.
for (size_t i = 1; i < path_components.size(); ++i) {
*output = output->Append(path_components[i]);
- if (base::EndsWith(path_components[i], ".app", true)) {
+ if (base::EndsWith(path_components[i], ".app",
+ base::CompareCase::SENSITIVE)) {
*output = output->Append("Contents");
*output = output->Append("MacOS");
return true;

Powered by Google App Engine
This is Rietveld 408576698