Index: extensions/test/extension_test_notification_observer.cc |
diff --git a/extensions/test/extension_test_notification_observer.cc b/extensions/test/extension_test_notification_observer.cc |
index 69c30d70169ddbf9aec66c10726f48475f1ff749..3d2f23fa418d520841d62150be37c533f5bd4465 100644 |
--- a/extensions/test/extension_test_notification_observer.cc |
+++ b/extensions/test/extension_test_notification_observer.cc |
@@ -194,15 +194,16 @@ |
return; |
condition_ = condition; |
- base::RunLoop run_loop; |
- quit_closure_ = run_loop.QuitClosure(); |
+ scoped_refptr<content::MessageLoopRunner> runner( |
+ new content::MessageLoopRunner); |
+ quit_closure_ = runner->QuitClosure(); |
std::unique_ptr<base::CallbackList<void()>::Subscription> subscription; |
if (notification_set) { |
subscription = notification_set->callback_list().Add(base::Bind( |
&ExtensionTestNotificationObserver::MaybeQuit, base::Unretained(this))); |
} |
- run_loop.Run(); |
+ runner->Run(); |
condition_.Reset(); |
quit_closure_.Reset(); |