Index: content/utility/in_process_utility_thread.cc |
diff --git a/content/utility/in_process_utility_thread.cc b/content/utility/in_process_utility_thread.cc |
index 8859e518216264fbb9c1b46f9e732caa55e63b2b..a91bac584180ae137512f208d2a56511389d9802 100644 |
--- a/content/utility/in_process_utility_thread.cc |
+++ b/content/utility/in_process_utility_thread.cc |
@@ -18,7 +18,10 @@ InProcessUtilityThread::InProcessUtilityThread(const std::string& channel_id) |
} |
InProcessUtilityThread::~InProcessUtilityThread() { |
+ // Wait till in-process utility thread finishes clean up. |
+ bool previous_value = base::ThreadRestrictions::SetIOAllowed(true); |
Stop(); |
+ base::ThreadRestrictions::SetIOAllowed(previous_value); |
} |
void InProcessUtilityThread::Init() { |