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

Unified Diff: chrome/browser/image_decoder.cc

Issue 9317074: Create an API around UtilityProcessHost and use that from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | « chrome/browser/image_decoder.h ('k') | chrome/browser/importer/external_process_importer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/image_decoder.cc
===================================================================
--- chrome/browser/image_decoder.cc (revision 120256)
+++ chrome/browser/image_decoder.cc (working copy)
@@ -8,8 +8,10 @@
#include "chrome/browser/browser_process.h"
#include "chrome/common/chrome_utility_messages.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/utility_process_host.h"
using content::BrowserThread;
+using content::UtilityProcessHost;
ImageDecoder::ImageDecoder(Delegate* delegate,
const std::string& image_data)
@@ -57,9 +59,8 @@
void ImageDecoder::DecodeImageInSandbox(
const std::vector<unsigned char>& image_data) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- UtilityProcessHost* utility_process_host =
- new UtilityProcessHost(this,
- target_thread_id_);
- utility_process_host->set_use_linux_zygote(true);
+ UtilityProcessHost* utility_process_host = UtilityProcessHost::Create(
+ this, target_thread_id_);
+ utility_process_host->EnableZygote();
utility_process_host->Send(new ChromeUtilityMsg_DecodeImage(image_data));
}
« no previous file with comments | « chrome/browser/image_decoder.h ('k') | chrome/browser/importer/external_process_importer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698