Commit 2169d0b9 authored by Xinan Cheng's avatar Xinan Cheng Committed by Commit Bot

[Fuchsia] Ensure to Tear down |agent_services_| before |agent_impl_|.

Change-Id: Ie68765ef6dcf9293f40d901ec9a066d0a530bb9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1868934
Commit-Queue: Xinan Cheng <xinan@google.com>
Auto-Submit: Xinan Cheng <xinan@google.com>
Reviewed-by: default avatarWez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707527}
parent b3125f15
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <utility> #include <utility>
#include "base/logging.h" #include "base/logging.h"
#include "base/run_loop.h"
namespace cr_fuchsia { namespace cr_fuchsia {
...@@ -45,6 +46,9 @@ void FakeComponentContext::NotImplemented_(const std::string& name) { ...@@ -45,6 +46,9 @@ void FakeComponentContext::NotImplemented_(const std::string& name) {
NOTIMPLEMENTED() << " API: " << name; NOTIMPLEMENTED() << " API: " << name;
} }
FakeComponentContext::~FakeComponentContext() = default; FakeComponentContext::~FakeComponentContext() {
agent_services_.Unbind();
base::RunLoop().RunUntilIdle();
}
} // namespace cr_fuchsia } // namespace cr_fuchsia
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment