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

Unified Diff: chrome_elf/chrome_elf_security.cc

Issue 2760853002: Remove use of PRODUCT_STRING_PATH in chrome_elf. (Closed)
Patch Set: now Created 3 years, 9 months 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 | « chrome_elf/chrome_elf_constants.cc ('k') | chrome_elf/chrome_elf_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_elf/chrome_elf_security.cc
diff --git a/chrome_elf/chrome_elf_security.cc b/chrome_elf/chrome_elf_security.cc
index 2b3c8258ea2d53065639aef9f8f8315b4500b237..e8414aff6b41b66411690951d0e7cd4f68744a7f 100644
--- a/chrome_elf/chrome_elf_security.cc
+++ b/chrome_elf/chrome_elf_security.cc
@@ -8,6 +8,7 @@
#include <windows.h>
#include <versionhelpers.h> // windows.h must be before
+#include "chrome/install_static/install_util.h"
#include "chrome_elf/chrome_elf_constants.h"
#include "chrome_elf/nt_registry/nt_registry.h"
@@ -23,8 +24,11 @@ void EarlyBrowserSecurity() {
// Check for kRegistrySecurityFinchPath. If it exists,
// we do NOT disable extension points. (Emergency off flag.)
- if (nt::OpenRegKey(nt::HKCU, elf_sec::kRegSecurityFinchPath, KEY_QUERY_VALUE,
- &handle, &ret_val)) {
+ if (nt::OpenRegKey(nt::HKCU,
+ install_static::GetRegistryPath()
+ .append(elf_sec::kRegSecurityFinchKeyName)
+ .c_str(),
+ KEY_QUERY_VALUE, &handle, &ret_val)) {
nt::CloseRegKey(handle);
return;
}
« no previous file with comments | « chrome_elf/chrome_elf_constants.cc ('k') | chrome_elf/chrome_elf_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698