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

Issue 18530: First step of porting VisitedLinkMaster to POSIX: (Closed)

Created:
11 years, 11 months ago by jeremy
Modified:
9 years, 6 months ago
Reviewers:
John Grabowski, brettw, agl
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

First step of porting VisitedLinkMaster to POSIX: * Use POSIX file access APIs rather than HANDLEs. * Add stubs so that VisitedLinkMaster compiles on POSIX. Still to be done: * Bring up Surrounding infrastructure to turn on unit tests.

Patch Set 1 #

Patch Set 2 : update Linux build file #

Total comments: 22

Patch Set 3 : Fix lint errors + agl's comments. #

Total comments: 13

Patch Set 4 : Fixes for Brett's comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -106 lines) Patch
M base/base.xcodeproj/project.pbxproj View 7 chunks +6 lines, -4 lines 0 comments Download
M base/file_util.h View 3 chunks +17 lines, -0 lines 1 comment Download
M base/file_util.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/browser.scons View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/visitedlink_master.h View 1 2 7 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/visitedlink_master.cc View 1 2 3 19 chunks +96 lines, -70 lines 0 comments Download
M chrome/browser/visitedlink_unittest.cc View 1 2 10 chunks +23 lines, -23 lines 0 comments Download
M chrome/chrome.xcodeproj/project.pbxproj View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/temp_scaffolding_stubs.h View 1 2 3 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jeremy
11 years, 11 months ago (2009-01-23 00:08:40 UTC) #1
agl
http://codereview.chromium.org/18530/diff/201/203 File base/scoped_file.h (right): http://codereview.chromium.org/18530/diff/201/203#newcode22 Line 22: typedef scoped_ptr_malloc<FILE, ScopedFILEClose> ScopedFILE; This is neat, but ...
11 years, 11 months ago (2009-01-23 00:22:39 UTC) #2
jeremy
all fixed, new version uploaded. http://codereview.chromium.org/18530/diff/201/203 File base/scoped_file.h (right): http://codereview.chromium.org/18530/diff/201/203#newcode22 Line 22: typedef scoped_ptr_malloc<FILE, ScopedFILEClose> ...
11 years, 11 months ago (2009-01-23 17:38:06 UTC) #3
agl
LGTM. Sorry about the "star on the left" comments; Evan gets me with these every ...
11 years, 11 months ago (2009-01-23 17:42:13 UTC) #4
brettw
http://codereview.chromium.org/18530/diff/212/214 File base/scoped_file.h (right): http://codereview.chromium.org/18530/diff/212/214#newcode22 Line 22: typedef scoped_ptr_malloc<FILE, ScopedFILEClose> ScopedFILE; Would this make sense ...
11 years, 11 months ago (2009-01-23 19:03:25 UTC) #5
jeremy
All fixed. http://codereview.chromium.org/18530/diff/212/214 File base/scoped_file.h (right): http://codereview.chromium.org/18530/diff/212/214#newcode22 Line 22: typedef scoped_ptr_malloc<FILE, ScopedFILEClose> ScopedFILE; On 2009/01/23 ...
11 years, 11 months ago (2009-01-23 22:31:06 UTC) #6
brettw
LGTM
11 years, 11 months ago (2009-01-23 22:53:44 UTC) #7
John Grabowski
11 years, 11 months ago (2009-01-26 19:31:08 UTC) #8
http://codereview.chromium.org/18530/diff/226/229
File base/file_util.h (right):

http://codereview.chromium.org/18530/diff/226/229#newcode324
Line 324: bool TruncateFile(FILE* file);
This might be misnamed.  For example:
  FILE *fp = fopen("/tmp/foo.txt", "w");
  fseek(fp, 500, SEEK_SET);
  file_util::TruncateFile(fp);
Will cause the file to be EXTENDED, not truncated.  
Perhaps that doesn't matter because the POSIX call, ftruncate(), is also
misnamed.

Powered by Google App Engine
This is Rietveld 408576698