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

Issue 2850042: Deprecate more old filepath functions. (Closed)

Created:
10 years, 5 months ago by Evan Martin
Modified:
9 years, 7 months ago
Reviewers:
tfarina, Nico
CC:
chromium-reviews, ben+cc_chromium.org, Paul Godavari, brettw-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, dpranke+watch_chromium.org, John Grabowski, darin-cc_chromium.org
Visibility:
Public.

Description

Deprecate most of the remaining wstring file_util functions. These still exist on Windows due to being used by the installer, but by moving them into the Windows-only block we prevent them from being used in new code. (I am already finding new code using some of these! I am glad to be rid of them.) BUG=24672 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51862

Patch Set 1 #

Patch Set 2 : deprecate 'em all #

Patch Set 3 : rebase #

Patch Set 4 : ok #

Patch Set 5 : trybot fixes #

Patch Set 6 : lint #

Patch Set 7 : rebase #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -67 lines) Patch
M base/file_util_deprecated.h View 1 2 3 2 chunks +24 lines, -18 lines 0 comments Download
M base/file_util_unittest.cc View 4 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 chunk +3 lines, -2 lines 3 comments Download
M chrome/browser/download/download_util.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/download/save_package.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/printing/printing_layout_uitest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/shell_integration.h View 1 chunk +2 lines, -0 lines 1 comment Download
M chrome/browser/shell_integration.cc View 1 chunk +4 lines, -4 lines 2 comments Download
M chrome/tools/convert_dict/aff_reader.cc View 1 chunk +2 lines, -1 line 1 comment Download
M chrome/tools/convert_dict/dic_reader.cc View 1 chunk +5 lines, -2 lines 2 comments Download
M printing/image.h View 1 chunk +4 lines, -3 lines 0 comments Download
M printing/image.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M tools/imagediff/image_diff.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_shell.h View 5 chunks +4 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 4 4 chunks +4 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell_gtk.cc View 4 5 4 chunks +6 lines, -5 lines 0 comments Download
M webkit/tools/test_shell/test_shell_mac.mm View 4 4 chunks +4 lines, -6 lines 0 comments Download
M webkit/tools/test_shell/test_shell_main.cc View 4 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_shell_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Evan Martin
10 years, 5 months ago (2010-07-08 16:47:03 UTC) #1
Evan Martin
http://codereview.chromium.org/2850042/diff/15001/16009 File chrome/tools/convert_dict/aff_reader.cc (right): http://codereview.chromium.org/2850042/diff/15001/16009#newcode51 chrome/tools/convert_dict/aff_reader.cc:51: FilePath path = FilePath::FromWStringHack(ASCIIToWide(filename)); I am going to improve ...
10 years, 5 months ago (2010-07-08 16:51:11 UTC) #2
Evan Martin
+thiago FYI
10 years, 5 months ago (2010-07-08 17:25:25 UTC) #3
tfarina
http://codereview.chromium.org/2850042/diff/15001/16003 File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/2850042/diff/15001/16003#newcode1331 chrome/browser/download/download_manager.cc:1331: if (!extension.empty()) The same code block is written in ...
10 years, 5 months ago (2010-07-08 17:33:11 UTC) #4
Nico
Nice! LG. Everything below are just nits. http://codereview.chromium.org/2850042/diff/15001/16003 File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/2850042/diff/15001/16003#newcode1332 chrome/browser/download/download_manager.cc:1332: extension.erase(extension.begin()); // ...
10 years, 5 months ago (2010-07-08 17:37:27 UTC) #5
Evan Martin
10 years, 5 months ago (2010-07-08 17:48:47 UTC) #6
Thanks

http://codereview.chromium.org/2850042/diff/15001/16003
File chrome/browser/download/download_manager.cc (right):

http://codereview.chromium.org/2850042/diff/15001/16003#newcode1331
chrome/browser/download/download_manager.cc:1331: if (!extension.empty())
On 2010/07/08 17:33:11, tfarina wrote:
> The same code block is written in save_package.cc. Would be could to refactor
it
> to some place?

Yes, I think perhaps including the "." in the Extension() return value was a bad
idea.  I think I should maybe change Extension() to not include the "." and then
fix all the callers too.

http://codereview.chromium.org/2850042/diff/15001/16007
File chrome/browser/shell_integration.cc (right):

http://codereview.chromium.org/2850042/diff/15001/16007#newcode26
chrome/browser/shell_integration.cc:26: arguments_w += std::wstring(L"--") +
ASCIIToWide(switches::kUserDataDir) +
On 2010/07/08 17:33:11, tfarina wrote:
> There is a TODO in some other place about using the command line API, would be
> good to add one here too?

Done.

Powered by Google App Engine
This is Rietveld 408576698