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
|
@ -1545,8 +1545,7 @@ gin::Handle<Session> Session::FromPartition(v8::Isolate* isolate,
|
|||
if (partition.empty()) {
|
||||
browser_context =
|
||||
ElectronBrowserContext::From("", false, std::move(options));
|
||||
} else if (base::StartsWith(partition, kPersistPrefix,
|
||||
base::CompareCase::SENSITIVE)) {
|
||||
} else if (partition.starts_with(kPersistPrefix)) {
|
||||
std::string name = partition.substr(8);
|
||||
browser_context =
|
||||
ElectronBrowserContext::From(name, false, std::move(options));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue