Index: chrome/browser/process_singleton_win.cc |
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc |
index 1be5a87431ef683ba73452bfb78c81361c2c6c94..17910dcf5a7ea8305c6aa48eaeadab6e15b9ba04 100644 |
--- a/chrome/browser/process_singleton_win.cc |
+++ b/chrome/browser/process_singleton_win.cc |
@@ -42,10 +42,9 @@ BOOL CALLBACK BrowserWindowEnumeration(HWND window, LPARAM param) { |
// Look for a Chrome instance that uses the same profile directory. |
ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir) |
: window_(NULL), locked_(false), foreground_window_(NULL) { |
- std::wstring user_data_dir_str(user_data_dir.ToWStringHack()); |
remote_window_ = FindWindowEx(HWND_MESSAGE, NULL, |
chrome::kMessageWindowClass, |
- user_data_dir_str.c_str()); |
+ user_data_dir.value().c_str()); |
if (!remote_window_) { |
// Make sure we will be the one and only process creating the window. |
// We use a named Mutex since we are protecting against multi-process |
@@ -68,7 +67,7 @@ ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir) |
// was given to us. |
remote_window_ = FindWindowEx(HWND_MESSAGE, NULL, |
chrome::kMessageWindowClass, |
- user_data_dir_str.c_str()); |
+ user_data_dir.value().c_str()); |
if (!remote_window_) |
Create(); |
BOOL success = ReleaseMutex(only_me); |