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

Issue 2990: Fixes bug in file_util::ReplaceExtension that could chop off path... (Closed)

Created:
12 years, 3 months ago by sky
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fixes bug in file_util::ReplaceExtension that could chop off path elements. This was causing some folks bookmarks not to get saved! BUG=1946 TEST=covered by unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=2412

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -5 lines) Patch
M base/file_util.cc View 1 2 1 chunk +27 lines, -5 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
sky
12 years, 3 months ago (2008-09-19 15:57:03 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/2990/diff/1/2 File base/file_util.cc (right): http://codereview.chromium.org/2990/diff/1/2#newcode198 Line 198: std::wstring::size_type last_dot = file_name->rfind(L'.'); Shouldn't we early out ...
12 years, 3 months ago (2008-09-19 16:53:14 UTC) #2
Erik does not do reviews
12 years, 3 months ago (2008-09-19 17:27:36 UTC) #3
LGTM

good find!

Powered by Google App Engine
This is Rietveld 408576698