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() { |