Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1512)

Unified Diff: content/utility/utility_thread_impl.cc

Issue 157783002: Fixes up batch-mode release of utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Calls the function properly this time. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/utility/utility_thread_impl.cc
diff --git a/content/utility/utility_thread_impl.cc b/content/utility/utility_thread_impl.cc
index 6151de67e7c8aa53abfc10444182ed2b1d3b8ea6..6fa43c8bfc0d33983330cde5502873fc5d8aacb6 100644
--- a/content/utility/utility_thread_impl.cc
+++ b/content/utility/utility_thread_impl.cc
@@ -118,7 +118,8 @@ void UtilityThreadImpl::OnBatchModeStarted() {
}
void UtilityThreadImpl::OnBatchModeFinished() {
- ChildProcess::current()->ReleaseProcess();
+ batch_mode_ = false;
+ ReleaseProcessIfNeeded();
}
#if defined(OS_POSIX)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698