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

Issue 293013: Deprecate PathService::Get(..., wstring*) and use FilePath instead. (Closed)

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

Description

Deprecate PathService::Get(..., wstring*) and use FilePath instead. I tried fixing all the Windows code but there's a *ton* of it. This change will at least prevent people from adding new code that uses the deprecated version (as that won't compile on Lin/Mac). BUG=24672 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29472

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -43 lines) Patch
M base/base_paths_win.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M base/i18n/icu_util.cc View 1 chunk +3 lines, -4 lines 1 comment Download
M base/path_service.h View 1 chunk +2 lines, -0 lines 0 comments Download
M base/path_service.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/importer/firefox_importer_unittest.cc View 2 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/importer/firefox_importer_unittest_utils.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/importer/firefox_importer_unittest_utils_mac.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/nacl_process_host.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/gtk_key_bindings_handler_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/user_data_manager.cc View 3 chunks +12 lines, -3 lines 1 comment Download
M chrome/browser/zygote_host_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/ui/ui_test.cc View 1 chunk +3 lines, -4 lines 1 comment Download
M webkit/glue/plugins/plugin_list_win.cc View 1 chunk +4 lines, -3 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Evan Martin
victory
11 years, 2 months ago (2009-10-19 22:42:28 UTC) #1
tony
LGTM, 2 nits below. http://codereview.chromium.org/293013/diff/1/3 File base/i18n/icu_util.cc (right): http://codereview.chromium.org/293013/diff/1/3#newcode61 Line 61: data_path = data_path.Append(ASCIIToWide(ICU_UTIL_DATA_SHARED_MODULE_NAME)); Nit: ...
11 years, 2 months ago (2009-10-19 22:46:49 UTC) #2
Evan Stade
11 years, 2 months ago (2009-10-19 22:54:31 UTC) #3
lgtm as well

http://codereview.chromium.org/293013/diff/1/11
File chrome/browser/user_data_manager.cc (right):

http://codereview.chromium.org/293013/diff/1/11#newcode32
Line 32: // TODO: don't use wstrings in all this code.  :(
TODO(evan)

http://codereview.chromium.org/293013/diff/1/14
File webkit/glue/plugins/plugin_list_win.cc (right):

http://codereview.chromium.org/293013/diff/1/14#newcode127
Line 127: firefox_app_data_plugin_path.AppendASCII("Mozilla/plugins");
<bikeshedding>

I agree AppendASCII twice is probably better, but since this is Windows-only you
can use Append with a wide literal string

</bikeshedding>

Powered by Google App Engine
This is Rietveld 408576698