chore: bump chromium to 137.0.7149.0 (main) (#46777)
* chore: bump chromium in DEPS to 137.0.7144.0 * chore: bump chromium in DEPS to 137.0.7145.0 * chore: bump chromium in DEPS to 137.0.7147.0 * chore: update patches * Remove deprecated GetVar(std::string_view, std::string*) overload Refs https://chromium-review.googlesource.com/c/chromium/src/+/6468873 * fixup! Remove deprecated GetVar(std::string_view, std::string*) overload * fixup! Remove deprecated GetVar(std::string_view, std::string*) overload * chore: bump chromium in DEPS to 137.0.7149.0 --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
parent
0c103f390c
commit
f2240e07f0
47 changed files with 174 additions and 183 deletions
|
@ -9,9 +9,9 @@
|
|||
namespace {
|
||||
|
||||
v8::Local<v8::Value> GetVar(v8::Isolate* isolate, const std::string& name) {
|
||||
std::string value;
|
||||
if (base::Environment::Create()->GetVar(name, &value)) {
|
||||
return gin::StringToV8(isolate, value);
|
||||
if (std::optional<std::string> value =
|
||||
base::Environment::Create()->GetVar(name)) {
|
||||
return gin::StringToV8(isolate, *value);
|
||||
} else {
|
||||
return v8::Null(isolate);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue