refactor: use auto env = base::Environment::Create(); everywhere (#29502)
This commit is contained in:
parent
5929d6335f
commit
00693bab30
11 changed files with 14 additions and 14 deletions
|
@ -353,7 +353,7 @@ void NodeBindings::Initialize() {
|
|||
// Parse and set Node.js cli flags.
|
||||
SetNodeCliFlags();
|
||||
|
||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||
auto env = base::Environment::Create();
|
||||
SetNodeOptions(env.get());
|
||||
|
||||
std::vector<std::string> argv = {"electron"};
|
||||
|
|
|
@ -190,7 +190,7 @@ void OpenExternal(const GURL& url,
|
|||
}
|
||||
|
||||
bool MoveItemToTrash(const base::FilePath& full_path, bool delete_on_fail) {
|
||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||
auto env = base::Environment::Create();
|
||||
|
||||
// find the trash method
|
||||
std::string trash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue