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

Unified Diff: base/test/test_reg_util_win.cc

Issue 1841573002: [Chrome ELF] New NT registry API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PRESUBMIT to allow chrome_elf directory files to use wstring. Created 4 years, 5 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 | « base/test/test_reg_util_win.h ('k') | chrome/browser/win/chrome_elf_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_reg_util_win.cc
diff --git a/base/test/test_reg_util_win.cc b/base/test/test_reg_util_win.cc
index d6706f99803621d1a1a9913ab2ceb44e84d589c9..f58b280bf1f2367050bedbc4bf7fcb41bdb3b3f0 100644
--- a/base/test/test_reg_util_win.cc
+++ b/base/test/test_reg_util_win.cc
@@ -99,9 +99,16 @@ RegistryOverrideManager::RegistryOverrideManager(
RegistryOverrideManager::~RegistryOverrideManager() {}
void RegistryOverrideManager::OverrideRegistry(HKEY override) {
+ OverrideRegistry(override, nullptr);
+}
+
+void RegistryOverrideManager::OverrideRegistry(HKEY override,
+ base::string16* override_path) {
base::string16 key_path = GenerateTempKeyPath(test_key_root_, timestamp_);
overrides_.push_back(
base::WrapUnique(new ScopedRegistryKeyOverride(override, key_path)));
+ if (override_path)
+ override_path->assign(key_path);
}
base::string16 GenerateTempKeyPath() {
« no previous file with comments | « base/test/test_reg_util_win.h ('k') | chrome/browser/win/chrome_elf_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698