Add scoped_ptr to Environment object.
BUG=None TEST=Compiles. Review URL: https://codereview.chromium.org/722513005 Cr-Commit-Position: refs/heads/master@{#304085}
This commit is contained in:
@ -835,7 +835,8 @@ class NSSInitSingleton {
|
||||
base::CPU cpu;
|
||||
|
||||
if (cpu.has_avx_hardware() && !cpu.has_avx()) {
|
||||
base::Environment::Create()->SetVar("NSS_DISABLE_HW_AES", "1");
|
||||
scoped_ptr<base::Environment> env(base::Environment::Create());
|
||||
env->SetVar("NSS_DISABLE_HW_AES", "1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user