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

Unified Diff: chrome/browser/extensions/sandboxed_extension_unpacker.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
Index: chrome/browser/extensions/sandboxed_extension_unpacker.cc
===================================================================
--- chrome/browser/extensions/sandboxed_extension_unpacker.cc (revision 120256)
+++ chrome/browser/extensions/sandboxed_extension_unpacker.cc (working copy)
@@ -26,6 +26,7 @@
#include "chrome/common/extensions/extension_unpacker.h"
#include "content/browser/renderer_host/resource_dispatcher_host.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/utility_process_host.h"
#include "crypto/signature_verifier.h"
#include "grit/generated_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -33,6 +34,7 @@
#include "ui/gfx/codec/png_codec.h"
using content::BrowserThread;
+using content::UtilityProcessHost;
// The following macro makes histograms that record the length of paths
// in this file much easier to read.
@@ -311,10 +313,11 @@
void SandboxedExtensionUnpacker::StartProcessOnIOThread(
const FilePath& temp_crx_path) {
- UtilityProcessHost* host = new UtilityProcessHost(this, thread_identifier_);
+ UtilityProcessHost* host = UtilityProcessHost::Create(
+ this, thread_identifier_);
// Grant the subprocess access to the entire subdir the extension file is
// in, so that it can unpack to that dir.
- host->set_exposed_dir(temp_crx_path.DirName());
+ host->SetExposedDir(temp_crx_path.DirName());
host->Send(
new ChromeUtilityMsg_UnpackExtension(
temp_crx_path, location_, creation_flags_));
« no previous file with comments | « chrome/browser/extensions/sandboxed_extension_unpacker.h ('k') | chrome/browser/extensions/webstore_inline_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698