Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2035)

Unified Diff: crypto/nss_util.cc

Issue 722513005: Add scoped_ptr to Environment object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/nss_util.cc
diff --git a/crypto/nss_util.cc b/crypto/nss_util.cc
index 8f9865a3c6cb59ae384c41a57901bcb231edd57f..02c932711968761233e0217bea0ccf3507ffbff6 100644
--- a/crypto/nss_util.cc
+++ b/crypto/nss_util.cc
@@ -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());
wtc 2014/11/13 21:00:26 The object that base::Environment::Create() return
+ env->SetVar("NSS_DISABLE_HW_AES", "1");
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698