diff options
author | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-19 13:26:02 +0000 |
---|---|---|
committer | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-19 13:26:02 +0000 |
commit | 650852ed08cdaa188acdae532caf31438ea18358 (patch) | |
tree | 75a40f4a8ee05e523a3a8b128a6e61bc44d979fb /chrome/browser/extensions/sandboxed_extension_unpacker.h | |
parent | da968bc16c3a459b350e6b941af07c99ed201764 (diff) | |
download | chromium_src-650852ed08cdaa188acdae532caf31438ea18358.zip chromium_src-650852ed08cdaa188acdae532caf31438ea18358.tar.gz chromium_src-650852ed08cdaa188acdae532caf31438ea18358.tar.bz2 |
Fail gracefully if profile Temp dir can not be accessed.
BUG=60634, 67627
TEST=Manually interfere with Temp directory creation, see that expected failures happen.
Review URL: http://codereview.chromium.org/6297003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/sandboxed_extension_unpacker.h')
-rw-r--r-- | chrome/browser/extensions/sandboxed_extension_unpacker.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/extensions/sandboxed_extension_unpacker.h b/chrome/browser/extensions/sandboxed_extension_unpacker.h index e47b26c..455e3f6 100644 --- a/chrome/browser/extensions/sandboxed_extension_unpacker.h +++ b/chrome/browser/extensions/sandboxed_extension_unpacker.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -93,7 +93,6 @@ class SandboxedExtensionUnpacker : public UtilityProcessHost::Client { // |client| with the result. If |rdh| is provided, unpacking is done in a // sandboxed subprocess. Otherwise, it is done in-process. SandboxedExtensionUnpacker(const FilePath& crx_path, - const FilePath& temp_path, ResourceDispatcherHost* rdh, SandboxedExtensionUnpackerClient* cilent); @@ -107,6 +106,10 @@ class SandboxedExtensionUnpacker : public UtilityProcessHost::Client { virtual ~SandboxedExtensionUnpacker(); + // Set |temp_dir_| as a temporary directory to unpack the extension in. + // Return true on success. + virtual bool CreateTempDirectory(); + // Validates the signature of the extension and extract the key to // |public_key_|. Returns true if the signature validates, false otherwise. // @@ -141,9 +144,6 @@ class SandboxedExtensionUnpacker : public UtilityProcessHost::Client { // The path to the CRX to unpack. FilePath crx_path_; - // A path to a temp dir to unpack in. - FilePath temp_path_; - // Our client's thread. This is the thread we respond on. BrowserThread::ID thread_identifier_; |