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

Issue 5259003: On windows filepaths need \\?\ prefix to allow extended file path names. Fix ... (Closed)

Created:
10 years, 1 month ago by Kavita Kanetkar
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

On windows filepaths need \\?\ prefix to allow extended file path names. Fix to bug 63574. BUG=63574 TEST=file_system_operation_unittest.cc and manually tested on FAT32. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67385

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -6 lines) Patch
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_operation_unittest.cc View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_path_manager.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_path_manager.cc View 1 3 chunks +16 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_path_manager_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Kavita Kanetkar
Please take a look.
10 years, 1 month ago (2010-11-25 03:33:06 UTC) #1
kinuko (google)
Only a few nits. http://codereview.chromium.org/5259003/diff/1/chrome/browser/renderer_host/browser_render_process_host.cc File chrome/browser/renderer_host/browser_render_process_host.cc (right): http://codereview.chromium.org/5259003/diff/1/chrome/browser/renderer_host/browser_render_process_host.cc#newcode245 chrome/browser/renderer_host/browser_render_process_host.cc:245: profile->GetPath()), nit: indent http://codereview.chromium.org/5259003/diff/1/webkit/fileapi/file_system_path_manager.cc File ...
10 years, 1 month ago (2010-11-25 03:36:47 UTC) #2
Kavita Kanetkar
Thanks for the quick review! Please take a look. http://codereview.chromium.org/5259003/diff/1/chrome/browser/renderer_host/browser_render_process_host.cc File chrome/browser/renderer_host/browser_render_process_host.cc (right): http://codereview.chromium.org/5259003/diff/1/chrome/browser/renderer_host/browser_render_process_host.cc#newcode245 chrome/browser/renderer_host/browser_render_process_host.cc:245: ...
10 years, 1 month ago (2010-11-25 03:42:03 UTC) #3
kinuko (google)
lgtm
10 years, 1 month ago (2010-11-25 04:04:11 UTC) #4
ericu
http://codereview.chromium.org/5259003/diff/9001/webkit/fileapi/file_system_operation_unittest.cc File webkit/fileapi/file_system_operation_unittest.cc (right): http://codereview.chromium.org/5259003/diff/9001/webkit/fileapi/file_system_operation_unittest.cc#newcode470 webkit/fileapi/file_system_operation_unittest.cc:470: FilePath dir_path(FILE_PATH_LITERAL("\\\\?\\") + dir.path().value()); I don't see anything forcing ...
10 years, 1 month ago (2010-11-25 04:18:35 UTC) #5
Kavita Kanetkar
Please take a look.
10 years, 1 month ago (2010-11-25 04:33:39 UTC) #6
ericu
10 years, 1 month ago (2010-11-25 04:37:27 UTC) #7
LGTM; if you can think of a better comment, feel free to update it before
committing.

http://codereview.chromium.org/5259003/diff/19001/webkit/fileapi/file_system_...
File webkit/fileapi/file_system_operation_unittest.cc (right):

http://codereview.chromium.org/5259003/diff/19001/webkit/fileapi/file_system_...
webkit/fileapi/file_system_operation_unittest.cc:478: // windows primarily.
I feel like what we should really be doing is running the same test on all
platforms, and getting the same result.  At some point in the code, there should
be an API that just does the right thing for us without us having to know what
platform it is.  We should run tests at that level.

There's nothing wrong with this code, but the comment feels wrong to me.

Powered by Google App Engine
This is Rietveld 408576698