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

Issue 16805: Move Contains() method to file_utils, stop relying on in extensions_protocol (Closed)

Created:
11 years, 11 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Move Contains() method to file_utils, stop relying on in extensions_protocol

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review feedback #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -90 lines) Patch
M base/file_path.h View 1 chunk +0 lines, -5 lines 0 comments Download
M base/file_path.cc View 2 chunks +0 lines, -26 lines 1 comment Download
M base/file_path_unittest.cc View 2 chunks +0 lines, -44 lines 0 comments Download
M base/file_util.h View 1 chunk +3 lines, -4 lines 1 comment Download
M base/file_util.cc View 1 chunk +27 lines, -0 lines 2 comments Download
M base/file_util_unittest.cc View 1 1 chunk +46 lines, -0 lines 1 comment Download
M chrome/browser/extensions/extension_protocol.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_protocol_unittest.cc View 1 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Aaron Boodman
11 years, 11 months ago (2009-01-09 20:31:00 UTC) #1
Matt Perry
http://codereview.chromium.org/16805/diff/1/7 File base/file_util_unittest.cc (right): http://codereview.chromium.org/16805/diff/1/7#newcode987 Line 987: file_util::Delete(data_dir, true); Most of these file operations can ...
11 years, 11 months ago (2009-01-09 20:55:12 UTC) #2
Aaron Boodman
Ready for another look. http://codereview.chromium.org/16805/diff/1/7 File base/file_util_unittest.cc (right): http://codereview.chromium.org/16805/diff/1/7#newcode987 Line 987: file_util::Delete(data_dir, true); On 2009/01/09 ...
11 years, 11 months ago (2009-01-09 21:25:50 UTC) #3
Matt Perry
LGTM
11 years, 11 months ago (2009-01-09 21:41:54 UTC) #4
Erik does not do reviews
11 years, 11 months ago (2009-01-12 17:14:02 UTC) #5
LGTM

http://codereview.chromium.org/16805/diff/404/405
File base/file_path.cc (left):

http://codereview.chromium.org/16805/diff/404/405#oldcode6
Line 6: #include "base/file_util.h"
maybe it's worth adding a comment here so that others in the future don't ever
include file_util or do any operations that touch the filesystem.

http://codereview.chromium.org/16805/diff/404/408
File base/file_util.cc (right):

http://codereview.chromium.org/16805/diff/404/408#newcode291
Line 291: #else
#else if defined(OS_POSIX)

http://codereview.chromium.org/16805/diff/404/408#newcode292
Line 292: if (!StartsWithASCII(abs_child.value(), abs_parent.value(), true))
Put a comment / TODO / bug in here to reference the MacOS case sensitivity
issue.  Since this is in file_util, it seems like we could fall back to a test
that actually touches the filesystem in some way when StartsWithASCII returns
false.

http://codereview.chromium.org/16805/diff/404/409
File base/file_util.h (right):

http://codereview.chromium.org/16805/diff/404/409#newcode107
Line 107: // absolute paths before doing the comparison.
If we're not going to handle MacOSX case-sensitivity issues, then there should
be a comment to that effect here.

http://codereview.chromium.org/16805/diff/404/410
File base/file_util_unittest.cc (right):

http://codereview.chromium.org/16805/diff/404/410#newcode1011
Line 1011: // Platform-specific concerns
missing indent

Powered by Google App Engine
This is Rietveld 408576698