summaryrefslogtreecommitdiffstats
path: root/chrome/browser/utility_process_host.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 22:14:23 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 22:14:23 +0000
commitcc02d035d6fbb07380d13cb127cdda56309b38fd (patch)
tree1b2248b63295deaa11b546cdf950d4b987d1d2ca /chrome/browser/utility_process_host.h
parent37dacc8451d6670121a3f62879f040ebd4f64f25 (diff)
downloadchromium_src-cc02d035d6fbb07380d13cb127cdda56309b38fd.zip
chromium_src-cc02d035d6fbb07380d13cb127cdda56309b38fd.tar.gz
chromium_src-cc02d035d6fbb07380d13cb127cdda56309b38fd.tar.bz2
Fix extension unpacking on linux/mac
Add a unittest that pretends to be the UtilityProcessHost and launches a chrome utility process for unpacking a theme. Review URL: http://codereview.chromium.org/147001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/utility_process_host.h')
-rw-r--r--chrome/browser/utility_process_host.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/utility_process_host.h b/chrome/browser/utility_process_host.h
index 86b7935..2028f03 100644
--- a/chrome/browser/utility_process_host.h
+++ b/chrome/browser/utility_process_host.h
@@ -79,6 +79,13 @@ class UtilityProcessHost : public ChildProcessHost {
// web resource server format(s).
bool StartWebResourceUnpacker(const std::string& data);
+ protected:
+ // Allow these methods to be overridden for tests.
+ virtual std::wstring GetUtilityProcessCmd();
+ virtual bool UseSandbox() {
+ return true;
+ }
+
private:
// Starts a process. Returns true iff it succeeded.
bool StartProcess(const FilePath& exposed_dir);