diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 02:10:20 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 02:10:20 +0000 |
commit | 047a03f4cefa75a67070f08b3f6b727f7ea702d5 (patch) | |
tree | d00ccbd9e59106de8fd904b06720be59219d61fe /base/process_util_mac.mm | |
parent | 0511c153260e5d402d7552ff7b47a2acb17bdf2b (diff) | |
download | chromium_src-047a03f4cefa75a67070f08b3f6b727f7ea702d5.zip chromium_src-047a03f4cefa75a67070f08b3f6b727f7ea702d5.tar.gz chromium_src-047a03f4cefa75a67070f08b3f6b727f7ea702d5.tar.bz2 |
Copy the relevant parts of ICU to a new file base/third_party/icu/icu_utf.*
so we can do basic UTF8/16/32 conversions without linking all of ICU.
Change callers who used to call SysUTF8ToWide/SysWideToUTF8 in base to using
these new functions. I will remove the Sys versions of these functions in a
later patch.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/243102
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_mac.mm')
-rw-r--r-- | base/process_util_mac.mm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/base/process_util_mac.mm b/base/process_util_mac.mm index 183fe31..61029c0 100644 --- a/base/process_util_mac.mm +++ b/base/process_util_mac.mm @@ -19,6 +19,7 @@ #include "base/eintr_wrapper.h" #include "base/logging.h" #include "base/string_util.h" +#include "base/sys_string_conversions.h" #include "base/time.h" namespace base { @@ -42,9 +43,9 @@ void RestoreDefaultExceptionHandler() { NamedProcessIterator::NamedProcessIterator(const std::wstring& executable_name, const ProcessFilter* filter) - : executable_name_(executable_name), - index_of_kinfo_proc_(0), - filter_(filter) { + : executable_name_(executable_name), + index_of_kinfo_proc_(0), + filter_(filter) { // Get a snapshot of all of my processes (yes, as we loop it can go stale, but // but trying to find where we were in a constantly changing list is basically // impossible. @@ -111,7 +112,7 @@ const ProcessEntry* NamedProcessIterator::NextProcessEntry() { } bool NamedProcessIterator::CheckForNextProcess() { - std::string executable_name_utf8(WideToUTF8(executable_name_)); + std::string executable_name_utf8(base::SysWideToUTF8(executable_name_)); std::string data; std::string exec_name; |