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

Unified Diff: tools/gn/target.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y 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
« no previous file with comments | « tools/gn/input_conversion.cc ('k') | ui/base/ime/chromeos/component_extension_ime_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/target.cc
diff --git a/tools/gn/target.cc b/tools/gn/target.cc
index a7a3d07d2063e1b49aca0505d4a419c911889fb9..71488cb8a3932ba8a82ad7408dc8fc4ad5aab340 100644
--- a/tools/gn/target.cc
+++ b/tools/gn/target.cc
@@ -219,7 +219,8 @@ std::string Target::GetComputedOutputName(bool include_prefix) const {
const Tool* tool = toolchain_->GetToolForTargetFinalOutput(this);
if (tool) {
// Only add the prefix if the name doesn't already have it.
- if (!base::StartsWithASCII(name, tool->output_prefix(), true))
+ if (!base::StartsWith(name, tool->output_prefix(),
+ base::CompareCase::SENSITIVE))
result = tool->output_prefix();
}
}
« no previous file with comments | « tools/gn/input_conversion.cc ('k') | ui/base/ime/chromeos/component_extension_ime_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698