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

Issue 12893: Get rid of kPathSeparator on windows. (Closed)

Created:
12 years ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Get rid of kPathSeparator on windows. Port some wstring function to take FilePaths. Re-enable relevant posix unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=6387

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -200 lines) Patch
M base/file_util.h View 2 3 4 4 chunks +8 lines, -14 lines 0 comments Download
M base/file_util.cc View 2 3 4 4 chunks +59 lines, -7 lines 0 comments Download
M base/file_util_unittest.cc View 3 chunks +57 lines, -63 lines 0 comments Download
M base/file_util_win.cc View 2 3 chunks +18 lines, -57 lines 0 comments Download
M chrome/browser/browser_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/save_page_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/starred_url_database_unittest.cc View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/history/url_database_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/visit_database_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/importer/ie_importer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/database_perftest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/session_history_uitest.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/session_restore_uitest.cc View 1 2 3 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/ssl_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_restore_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/url_fetcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/visitedlink_perftest.cc View 1 2 3 4 3 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/webdata/web_database_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/tab_switching/tab_switching_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/net_util.h View 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/net_util.cc View 3 chunks +16 lines, -12 lines 0 comments Download
M webkit/tools/test_shell/test_shell_win.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Evan Stade
12 years ago (2008-12-04 02:43:15 UTC) #1
tony
http://codereview.chromium.org/12893/diff/261/281 File base/file_util.cc (right): http://codereview.chromium.org/12893/diff/261/281#newcode21 Line 21: const FilePath::CharType kExtensionSeparator = FILE_PATH_LITERAL('.'); If this is ...
12 years ago (2008-12-04 08:45:12 UTC) #2
Evan Stade
http://codereview.chromium.org/12893/diff/261/281 File base/file_util.cc (right): http://codereview.chromium.org/12893/diff/261/281#newcode21 Line 21: const FilePath::CharType kExtensionSeparator = FILE_PATH_LITERAL('.'); On 2008/12/04 08:45:12, ...
12 years ago (2008-12-04 19:19:25 UTC) #3
tony
12 years ago (2008-12-04 19:30:36 UTC) #4
The plan is to remove the *Hack and deprecated functions entirely.  If you want,
you can put a TODO into the file that this needs to happen, but it would be more
awesome if you just went ahead and did it while you're there.

With either change, LGTM.

On 2008/12/04 19:19:25, Evan Stade wrote:
> On 2008/12/04 08:45:12, tony wrote:
> > Would it be possible to use FILE_PATH_LITERAL above for path and result in
> > struct InsertBeforeExtensionCase so you don't have to use FromWStringHack
and
> > ToWStringHack below?
> 
> yes the Ls should change to FILE_PATH_LITERALs. But that can be said of almost
> every L-prefixed constant in this file. The only way to live with this file is
> to accept the use of *Hack or deprecated functions.
> 
> I'll still change it if you want though. Just not sure where you draw the
line.

Powered by Google App Engine
This is Rietveld 408576698