refactor: replace base::EndsWith() with std::ends_with() (#41937)
This commit is contained in:
parent
7621e7cff7
commit
b684a98267
4 changed files with 11 additions and 20 deletions
|
@ -31,13 +31,10 @@ base::FilePath MainApplicationBundlePath() {
|
|||
|
||||
// Up to Contents.
|
||||
if (!HasMainProcessKey() &&
|
||||
(base::EndsWith(path.value(), " Helper", base::CompareCase::SENSITIVE) ||
|
||||
base::EndsWith(path.value(), content::kMacHelperSuffix_plugin,
|
||||
base::CompareCase::SENSITIVE) ||
|
||||
base::EndsWith(path.value(), content::kMacHelperSuffix_renderer,
|
||||
base::CompareCase::SENSITIVE) ||
|
||||
base::EndsWith(path.value(), content::kMacHelperSuffix_gpu,
|
||||
base::CompareCase::SENSITIVE))) {
|
||||
(path.value().ends_with(" Helper") ||
|
||||
path.value().ends_with(content::kMacHelperSuffix_plugin) ||
|
||||
path.value().ends_with(content::kMacHelperSuffix_renderer) ||
|
||||
path.value().ends_with(content::kMacHelperSuffix_gpu))) {
|
||||
// The running executable is the helper. Go up five steps:
|
||||
// Contents/Frameworks/Helper.app/Contents/MacOS/Helper
|
||||
// ^ to here ^ from here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue