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

Issue 1582022: Unpack extensions inside chrome's directory. (Closed)

Created:
10 years, 8 months ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Unpack extensions inside chrome's profile directory. Other users of the temp directory will be altered in a subsequent CL. BUG=13044 TEST=SandboxedExtensionUnpackerTest.*, ScopedTempDir.UniqueTempDirUnderPath, FileUtilTest.CreateNewTempDirInDirTest, manual testing on win, linux, mac. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=46078

Patch Set 1 : Fix windows build error. #

Total comments: 24

Patch Set 2 : Address review comments. #

Total comments: 2

Patch Set 3 : Final rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -43 lines) Patch
M base/file_util.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M base/file_util_posix.cc View 1 2 1 chunk +28 lines, -9 lines 0 comments Download
M base/file_util_unittest.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M base/file_util_win.cc View 1 3 chunks +16 lines, -9 lines 0 comments Download
M base/scoped_temp_dir.h View 1 chunk +3 lines, -0 lines 0 comments Download
M base/scoped_temp_dir.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M base/scoped_temp_dir_unittest.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 1 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc View 1 4 chunks +38 lines, -4 lines 0 comments Download
M chrome/common/chrome_paths.h View 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.h View 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.cc View 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_file_util.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_unpacker.cc View 6 chunks +8 lines, -15 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Sam Kerner (Chrome)
Erik, This change adds a Temp directory under the chrome config directory. I wonder if ...
10 years, 8 months ago (2010-04-19 18:23:27 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/1582022/diff/14001/15001 File base/file_util.h (right): http://codereview.chromium.org/1582022/diff/14001/15001#newcode251 base/file_util.h:251: bool CreateTempDirInDir(const FilePath& base_dir, we have a naming mismatch ...
10 years, 8 months ago (2010-04-20 00:29:53 UTC) #2
Sam Kerner (Chrome)
Ready for another look. http://codereview.chromium.org/1582022/diff/14001/15001 File base/file_util.h (right): http://codereview.chromium.org/1582022/diff/14001/15001#newcode251 base/file_util.h:251: bool CreateTempDirInDir(const FilePath& base_dir, On ...
10 years, 8 months ago (2010-04-20 20:46:37 UTC) #3
Sam Kerner (Chrome)
Erik, I got the message below from a forum moderator regarding this issue. I wonder ...
10 years, 8 months ago (2010-04-29 04:15:51 UTC) #4
Erik does not do reviews
Maybe, but we're pretty close to the wire. Worst case, we can land it as ...
10 years, 8 months ago (2010-04-29 04:31:41 UTC) #5
Erik does not do reviews
Crap. I just noticed - is this review waiting for me? If so, sorry about ...
10 years, 8 months ago (2010-04-29 04:32:40 UTC) #6
Erik does not do reviews
LGTM - sorry again about the delay! http://codereview.chromium.org/1582022/diff/25001/26013 File chrome/common/chrome_paths.h (right): http://codereview.chromium.org/1582022/diff/25001/26013#newcode34 chrome/common/chrome_paths.h:34: // this ...
10 years, 8 months ago (2010-04-29 04:45:08 UTC) #7
Sam Kerner (Chrome)
10 years, 7 months ago (2010-04-30 17:53:07 UTC) #8
http://codereview.chromium.org/1582022/diff/25001/26013
File chrome/common/chrome_paths.h (right):

http://codereview.chromium.org/1582022/diff/25001/26013#newcode34
chrome/common/chrome_paths.h:34: // this instead of Temp when a sandboxed
process
On 2010/04/29 04:45:09, Erik Kay wrote:
> This really isn't specific to sandboxing.  The issue is when you need to
create
> a file in a temporary location and then move it into the profile.  When you do
> that move, it needs to be on the same filesystem as the profile.

Fixed.

Powered by Google App Engine
This is Rietveld 408576698