Index: chrome/browser/extensions/api/messaging/native_messaging_test_util.cc |
diff --git a/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc b/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc |
index 085f6c1d05e899c98a7736a52d8fd289e47a42e1..783b0b656b0b7558ede34d1bf66e2455ea50f42a 100644 |
--- a/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc |
+++ b/chrome/browser/extensions/api/messaging/native_messaging_test_util.cc |
@@ -77,7 +77,7 @@ void ScopedTestNativeMessagingHost::RegisterTestHost(bool user_level) { |
#if defined(OS_WIN) |
HKEY root_key = user_level ? HKEY_CURRENT_USER : HKEY_LOCAL_MACHINE; |
- registry_override_.OverrideRegistry(root_key); |
+ ASSERT_NO_FATAL_FAILURE(registry_override_.OverrideRegistry(root_key)); |
#else |
path_override_.reset(new base::ScopedPathOverride( |
user_level ? chrome::DIR_USER_NATIVE_MESSAGING |