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

Unified Diff: base/process_util_mac.mm

Issue 243102: Convert base dependencies to use sys_string_conversions instead of the ICU... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/platform_file_posix.cc ('k') | base/stats_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_mac.mm
===================================================================
--- base/process_util_mac.mm (revision 28166)
+++ base/process_util_mac.mm (working copy)
@@ -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 @@
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 @@
}
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;
« no previous file with comments | « base/platform_file_posix.cc ('k') | base/stats_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698