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

Issue 2088006: Give the extension unpacker process a junction/symlink free path to the unpack directory. (Closed)

Created:
10 years, 7 months ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Alexander Potapenko, ben+cc_chromium.org, John Grabowski, Erik does not do reviews, Paweł Hajdan Jr., Timur Iskhodzhanov, Aaron Boodman, stuartmorgan, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Give the extension unpacker process a junction/symlink free path to the unpack directory. BUG=35198, 13044 TEST=FileUtilTest.NormalizeFilePathBasic,FileUtilTest. NormalizeFilePathReparsePoints,FileUtilTest.NormalizeFilePathSymlinks Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49337

Patch Set 1 : Fix unit test on mac. #

Patch Set 2 : Add comment with link to msdn article explaing the implementation od RealFilePath(). #

Total comments: 26

Patch Set 3 : Uses anon namespaces for static functions. #

Patch Set 4 : Update unit test name. #

Patch Set 5 : Update a variable name. #

Total comments: 4

Patch Set 6 : Add junction unittests. #

Total comments: 16

Patch Set 7 : Fixes for unit tests. #

Patch Set 8 : FIx up unit tests. #

Total comments: 2

Patch Set 9 : Move path prefixing inoto unit test helper. #

Total comments: 3

Patch Set 10 : Rebase for commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -73 lines) Patch
M base/data/valgrind/base_unittests.gtest_mac.txt View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M base/file_util.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -6 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 2 chunks +25 lines, -4 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +281 lines, -28 lines 0 comments Download
M base/file_util_win.cc View 1 2 3 4 5 6 7 8 9 4 chunks +121 lines, -4 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/utility_process_host.cc View 1 chunk +1 line, -24 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Sam Kerner (Chrome)
Carlos, This change implements your recommendation on issue 13044, comment #22: > Comment 22 by ...
10 years, 7 months ago (2010-05-14 22:29:27 UTC) #1
cpu_(ooo_6.6-7.5)
Let me pull in Ricardo, he is best to review the Windows piece. On 2010/05/14 ...
10 years, 7 months ago (2010-05-17 17:52:38 UTC) #2
cpu_(ooo_6.6-7.5)
. On 2010/05/17 17:52:38, cpu wrote: > Let me pull in Ricardo, he is best ...
10 years, 7 months ago (2010-05-17 17:53:05 UTC) #3
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/2088006/diff/8001/1013 File base/file_util_win.cc (right): http://codereview.chromium.org/2088006/diff/8001/1013#newcode912 base/file_util_win.cc:912: FilePath* drive_letter_path) { prefer unnamed namespaces to static. See ...
10 years, 7 months ago (2010-05-17 17:58:14 UTC) #4
Sam Kerner (Chrome)
http://codereview.chromium.org/2088006/diff/8001/1013 File base/file_util_win.cc (right): http://codereview.chromium.org/2088006/diff/8001/1013#newcode912 base/file_util_win.cc:912: FilePath* drive_letter_path) { On 2010/05/17 17:58:15, cpu wrote: > ...
10 years, 7 months ago (2010-05-17 18:49:33 UTC) #5
rvargas (doing something else)
http://codereview.chromium.org/2088006/diff/8001/1010 File base/file_util.h (right): http://codereview.chromium.org/2088006/diff/8001/1010#newcode282 base/file_util.h:282: // Set |real_path| to |path| with symbolic links and ...
10 years, 7 months ago (2010-05-17 19:55:38 UTC) #6
Sam Kerner (Chrome)
Ready for another look. http://codereview.chromium.org/2088006/diff/8001/1010 File base/file_util.h (right): http://codereview.chromium.org/2088006/diff/8001/1010#newcode282 base/file_util.h:282: // Set |real_path| to |path| ...
10 years, 7 months ago (2010-05-17 22:53:05 UTC) #7
rvargas (doing something else)
http://codereview.chromium.org/2088006/diff/8001/1012 File base/file_util_unittest.cc (right): http://codereview.chromium.org/2088006/diff/8001/1012#newcode419 base/file_util_unittest.cc:419: // This can only be done on POSIX platforms. ...
10 years, 7 months ago (2010-05-18 01:18:00 UTC) #8
Sam Kerner (Chrome)
Ready for another look. On 2010/05/18 01:18:00, rvargas wrote: > You could use CreateSymbolicLink and ...
10 years, 6 months ago (2010-06-01 20:32:48 UTC) #9
Sam Kerner (Chrome)
http://codereview.chromium.org/2088006/diff/28001/29005 File base/file_util_win.cc (right): http://codereview.chromium.org/2088006/diff/28001/29005#newcode14 base/file_util_win.cc:14: #include <WinIoCtl.h> On 2010/05/18 01:18:00, rvargas wrote: > Remove ...
10 years, 6 months ago (2010-06-01 20:33:07 UTC) #10
rvargas (doing something else)
Looks good. Just a few issues with the test. http://codereview.chromium.org/2088006/diff/45001/46004 File base/file_util_unittest.cc (right): http://codereview.chromium.org/2088006/diff/45001/46004#newcode392 base/file_util_unittest.cc:392: ...
10 years, 6 months ago (2010-06-02 18:35:25 UTC) #11
Sam Kerner (Chrome)
http://codereview.chromium.org/2088006/diff/45001/46004 File base/file_util_unittest.cc (right): http://codereview.chromium.org/2088006/diff/45001/46004#newcode392 base/file_util_unittest.cc:392: // To test that file_util::NormalazeFilePath() deals with NTFS junctions ...
10 years, 6 months ago (2010-06-03 16:07:10 UTC) #12
rvargas (doing something else)
http://codereview.chromium.org/2088006/diff/45001/46004 File base/file_util_unittest.cc (right): http://codereview.chromium.org/2088006/diff/45001/46004#newcode395 base/file_util_unittest.cc:395: typedef struct _REPARSE_DATA_BUFFER { On 2010/06/03 16:07:11, Sam Kerner ...
10 years, 6 months ago (2010-06-03 18:39:06 UTC) #13
Sam Kerner (Chrome)
http://codereview.chromium.org/2088006/diff/45001/46004 File base/file_util_unittest.cc (right): http://codereview.chromium.org/2088006/diff/45001/46004#newcode395 base/file_util_unittest.cc:395: typedef struct _REPARSE_DATA_BUFFER { On 2010/06/03 18:39:06, rvargas wrote: ...
10 years, 6 months ago (2010-06-04 19:07:57 UTC) #14
Sam Kerner (Chrome)
http://codereview.chromium.org/2088006/diff/59001/60004 File base/file_util_unittest.cc (right): http://codereview.chromium.org/2088006/diff/59001/60004#newcode134 base/file_util_unittest.cc:134: //ASSERT_FALSE(file_util::PathExists(test_dir_)); Oops, will need to revert this...
10 years, 6 months ago (2010-06-04 19:18:54 UTC) #15
Sam Kerner (Chrome)
http://codereview.chromium.org/2088006/diff/59001/60004 File base/file_util_unittest.cc (right): http://codereview.chromium.org/2088006/diff/59001/60004#newcode134 base/file_util_unittest.cc:134: //ASSERT_FALSE(file_util::PathExists(test_dir_)); On 2010/06/04 19:18:54, Sam Kerner (Chrome) wrote: > ...
10 years, 6 months ago (2010-06-05 18:36:22 UTC) #16
rvargas (doing something else)
LGTM, Thanks. http://codereview.chromium.org/2088006/diff/76001/73006 File base/file_util_win.cc (right): http://codereview.chromium.org/2088006/diff/76001/73006#newcode990 base/file_util_win.cc:990: // GetMappedFileName() will fail if the result ...
10 years, 6 months ago (2010-06-07 18:50:16 UTC) #17
cpu_(ooo_6.6-7.5)
rubber stamp LGTM. Thanks rvargas for the review. On 2010/06/07 18:50:16, rvargas wrote: > LGTM, ...
10 years, 6 months ago (2010-06-08 22:29:38 UTC) #18
Sam Kerner (Chrome)
10 years, 6 months ago (2010-06-09 22:55:09 UTC) #19
http://codereview.chromium.org/2088006/diff/76001/73006
File base/file_util_win.cc (right):

http://codereview.chromium.org/2088006/diff/76001/73006#newcode1001
base/file_util_win.cc:1001: // On NTFS disks, GetMappedFileName will return a
path that starts with
On 2010/06/07 18:50:17, rvargas wrote:
> nit: This is true for any file system.

Done.

Powered by Google App Engine
This is Rietveld 408576698