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/crx_installer.cc | |
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/crx_installer.cc')
-rw-r--r-- | chrome/browser/extensions/crx_installer.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc index 1593aea..f62c983 100644 --- a/chrome/browser/extensions/crx_installer.cc +++ b/chrome/browser/extensions/crx_installer.cc @@ -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. @@ -117,18 +117,9 @@ CrxInstaller::~CrxInstaller() { void CrxInstaller::InstallCrx(const FilePath& source_file) { source_file_ = source_file; - FilePath user_data_temp_dir; - { - // We shouldn't be doing disk IO on the UI thread. - // http://code.google.com/p/chromium/issues/detail?id=60634 - base::ThreadRestrictions::ScopedAllowIO allow_io; - CHECK(PathService::Get(chrome::DIR_USER_DATA_TEMP, &user_data_temp_dir)); - } - scoped_refptr<SandboxedExtensionUnpacker> unpacker( new SandboxedExtensionUnpacker( source_file, - user_data_temp_dir, g_browser_process->resource_dispatcher_host(), this)); |