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