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

Issue 267063: Shorten the generated file name to be less than MAX_PATH (on Windows). (Closed)

Created:
11 years, 2 months ago by kuchhal
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Shorten the generated file name to be less than MAX_PATH (on Windows). BUG=24591 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28845

Patch Set 1 #

Total comments: 1

Patch Set 2 : trim at the end #

Patch Set 3 : 'null char also needs to exist' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M chrome/browser/views/tab_contents/tab_contents_view_win.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
kuchhal
11 years, 2 months ago (2009-10-12 23:04:14 UTC) #1
tony
http://codereview.chromium.org/267063/diff/1/2 File chrome/browser/views/tab_contents/tab_contents_view_win.cc (right): http://codereview.chromium.org/267063/diff/1/2#newcode158 Line 158: fn = fn.substr(fn.size() + drop_data.file_extension.size() + I see, ...
11 years, 2 months ago (2009-10-12 23:10:24 UTC) #2
kuchhal
Sure, that also saves one line. Changed.
11 years, 2 months ago (2009-10-12 23:15:25 UTC) #3
tony
LGTM. Just to be sure, should it be -1 or -2? I don't know if ...
11 years, 2 months ago (2009-10-12 23:17:24 UTC) #4
kuchhal
11 years, 2 months ago (2009-10-12 23:24:05 UTC) #5
Yes looks like -2: http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx

I was only taking '.' into account. Will change and submit.

Thanks for the review.

Powered by Google App Engine
This is Rietveld 408576698