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

Unified Diff: chrome/browser/image_decoder.cc

Issue 8770025: Zygote most of the uses of the utility process on Linux (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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
Index: chrome/browser/image_decoder.cc
diff --git a/chrome/browser/image_decoder.cc b/chrome/browser/image_decoder.cc
index 3fb7aa8d1f41a07d41c5995860794d9f5b558294..c05c2b2d46f588dc032bebe65040c4768ea14f46 100644
--- a/chrome/browser/image_decoder.cc
+++ b/chrome/browser/image_decoder.cc
@@ -60,5 +60,8 @@ void ImageDecoder::DecodeImageInSandbox(
UtilityProcessHost* utility_process_host =
new UtilityProcessHost(this,
target_thread_id_);
+#if defined(OS_LINUX)
+ utility_process_host->set_should_use_zygote(true);
+#endif
utility_process_host->Send(new ChromeUtilityMsg_DecodeImage(image_data));
}

Powered by Google App Engine
This is Rietveld 408576698