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

Issue 194021: Bug fix: produce unique temp file names when the VFS requests a handle to a n... (Closed)

Created:
11 years, 3 months ago by dumi
Modified:
11 years, 3 months ago
CC:
chromium-reviews_googlegroups.com, brettw, jam, Ben Goodger (Google)
Visibility:
Public.

Description

Bug fix: produce unique temp file names when the VFS requests a handle to a null file. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26001

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : Addressing Adam's comments. #

Total comments: 10

Patch Set 7 : Addressed Darin's comments. #

Total comments: 6

Patch Set 8 : Final version. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -44 lines) Patch
M base/file_util_posix.cc View 3 4 5 6 7 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/database_dispatcher_host.cc View 1 2 3 4 5 6 7 13 chunks +58 lines, -39 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
michaeln
http://codereview.chromium.org/194021/diff/1/2 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/194021/diff/1/2#newcode392 Line 392: } while (file_util::PathExists(temp_file_name)); This is running on the ...
11 years, 3 months ago (2009-09-04 17:34:27 UTC) #1
dumi
On 2009/09/04 17:34:27, michaeln wrote: > http://codereview.chromium.org/194021/diff/1/2 > File chrome/browser/renderer_host/database_dispatcher_host.cc (right): > > http://codereview.chromium.org/194021/diff/1/2#newcode392 > ...
11 years, 3 months ago (2009-09-05 00:25:44 UTC) #2
darin (slow to review)
http://codereview.chromium.org/194021/diff/4001/4002 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/194021/diff/4001/4002#newcode67 Line 67: static FilePath GetUniqueTempFileName() { please use one of ...
11 years, 3 months ago (2009-09-05 04:37:42 UTC) #3
dumi
> please use one of the methods from base/file_util for creating a temporary file. > ...
11 years, 3 months ago (2009-09-08 18:16:49 UTC) #4
darin (slow to review)
On 2009/09/08 18:16:49, dumi wrote: > > please use one of the methods from base/file_util ...
11 years, 3 months ago (2009-09-08 18:20:22 UTC) #5
dumi
I used 'bool file_util::CreateTemporaryFileInDir()' to get a temp file name. Please take another look. Adam: ...
11 years, 3 months ago (2009-09-09 18:42:43 UTC) #6
agl
http://codereview.chromium.org/194021/diff/6/8 File base/file_util_posix.cc (right): http://codereview.chromium.org/194021/diff/6/8#newcode419 Line 419: FILE* file = CreateAndOpenTemporaryFileInDir(dir, temp_file); I'm a little ...
11 years, 3 months ago (2009-09-09 18:52:32 UTC) #7
dumi
> I'm a little confused here. This function never returns the FILE* - so it's ...
11 years, 3 months ago (2009-09-09 19:25:59 UTC) #8
darin (slow to review)
http://codereview.chromium.org/194021/diff/10/3005 File base/file_util_posix.cc (right): http://codereview.chromium.org/194021/diff/10/3005#newcode418 Line 418: int fd = CreateAndOpenFdForTemporaryFile(dir, temp_file); mkstemp is documented ...
11 years, 3 months ago (2009-09-10 18:32:59 UTC) #9
dumi
http://codereview.chromium.org/194021/diff/10/3005 File base/file_util_posix.cc (right): http://codereview.chromium.org/194021/diff/10/3005#newcode418 Line 418: int fd = CreateAndOpenFdForTemporaryFile(dir, temp_file); On 2009/09/10 18:32:59, ...
11 years, 3 months ago (2009-09-10 21:50:34 UTC) #10
darin (slow to review)
LGTM w/ nits addressed: http://codereview.chromium.org/194021/diff/10002/10003 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/194021/diff/10002/10003#newcode70 Line 70: if ((params.file_name == params.db_dir) ...
11 years, 3 months ago (2009-09-11 00:11:19 UTC) #11
dumi
http://codereview.chromium.org/194021/diff/10002/10003 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/194021/diff/10002/10003#newcode70 Line 70: if ((params.file_name == params.db_dir) && On 2009/09/11 00:11:19, ...
11 years, 3 months ago (2009-09-11 00:49:47 UTC) #12
michaeln
11 years, 3 months ago (2009-09-11 00:51:50 UTC) #13
LGTM!

Powered by Google App Engine
This is Rietveld 408576698