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

Issue 8825: Begin the first small step towards using FilePath everywhere: (Closed)

Created:
12 years, 1 month ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Begin the first small step towards using FilePath everywhere: - Add some transition APIs. - Start migrating some code to transition APIs.

Patch Set 1 #

Patch Set 2 : cleanups spotted after uploading #

Patch Set 3 : one more alphabetize #

Patch Set 4 : review comments #

Patch Set 5 : windows fixes #

Patch Set 6 : windows fixes for real #

Patch Set 7 : works on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+476 lines, -312 lines) Patch
M base/base_paths.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M base/base_paths_linux.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M base/file_path.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M base/file_path.cc View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M base/file_util.h View 1 9 chunks +28 lines, -0 lines 0 comments Download
M base/file_util.cc View 1 3 chunks +59 lines, -9 lines 0 comments Download
M base/file_util_linux.cc View 1 2 chunks +7 lines, -6 lines 0 comments Download
M base/file_util_mac.mm View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 4 5 6 8 chunks +47 lines, -41 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 3 4 5 6 26 chunks +162 lines, -172 lines 0 comments Download
M base/file_util_win.cc View 6 13 chunks +56 lines, -37 lines 0 comments Download
M base/icu_util.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M base/path_service.h View 3 chunks +7 lines, -2 lines 0 comments Download
M base/path_service.cc View 1 2 7 chunks +23 lines, -11 lines 0 comments Download
M base/path_service_unittest.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M base/trace_event.cc View 1 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/download/download_uitest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/download/save_page_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Evan Martin
Mark, I apologize for sullying your nice FilePath API, but getting everyone to use it ...
12 years, 1 month ago (2008-10-28 05:36:04 UTC) #1
Mark Mentovai
This looks pretty good to me. I'll take a look at the rest of the ...
12 years, 1 month ago (2008-10-28 13:40:15 UTC) #2
Avi (use Gerrit)
http://codereview.chromium.org/8825/diff/33/41 File base/file_util_mac.mm (right): http://codereview.chromium.org/8825/diff/33/41#newcode22 Line 22: *path = FilePath([tmp cStringUsingEncoding:NSUTF8StringEncoding]); On 2008/10/28 13:40:15, Mark ...
12 years, 1 month ago (2008-10-28 14:53:16 UTC) #3
Evan Martin
Ok, new snapshot up with review comments addressed. I will ping you again when I ...
12 years, 1 month ago (2008-10-28 15:42:52 UTC) #4
Evan Martin
Windows fixes now uploaded. It passes the base unit tests; still compiling the rest, but ...
12 years, 1 month ago (2008-10-28 22:38:26 UTC) #5
Mark Mentovai
LGTM conditioned on testing on a Mac http://codereview.chromium.org/8825/diff/224/110 File base/file_util_mac.mm (right): http://codereview.chromium.org/8825/diff/224/110#newcode22 Line 22: *path ...
12 years, 1 month ago (2008-10-28 23:02:33 UTC) #6
Evan Martin
> http://codereview.chromium.org/8825/diff/224/114#newcode84 > Line 84: base::SysWideToNativeMB(data_path.ToWStringHack()).c_str()); > Ew. > > OK, I guess this isn't ...
12 years, 1 month ago (2008-10-30 22:57:31 UTC) #7
tony
12 years, 1 month ago (2008-10-30 23:33:39 UTC) #8
Wow, LGTM.  Thanks for starting this process.

On 2008/10/30 22:57:31, Evan Martin wrote:
> > http://codereview.chromium.org/8825/diff/224/114#newcode84
> > Line 84: base::SysWideToNativeMB(data_path.ToWStringHack()).c_str());
> > Ew.
> > 
> > OK, I guess this isn't too much worse than what was there before, but since
> this
> > is Linux-only, can't you just use data_path.value().c_str() directly?
> 
> At least the #ifdef isn't Linux-specific.  Since I'm using the Hack()
function,
> it'll be easy to grep out in the future.
> 
> New snapshot uploaded.  I think I'm gonna get Tony to look at it now unless
> you're eager to continue looking.

Powered by Google App Engine
This is Rietveld 408576698