Index: chrome/common/win_util.cc |
=================================================================== |
--- chrome/common/win_util.cc (revision 7599) |
+++ chrome/common/win_util.cc (working copy) |
@@ -223,10 +223,10 @@ |
// Open an item via a shell execute command. Error code checking and casting |
// explanation: http://msdn2.microsoft.com/en-us/library/ms647732.aspx |
-bool OpenItemViaShell(const std::wstring& full_path, bool ask_for_app) { |
+bool OpenItemViaShell(const FilePath& full_path, bool ask_for_app) { |
HINSTANCE h = ::ShellExecuteW( |
- NULL, NULL, full_path.c_str(), NULL, |
- file_util::GetDirectoryFromPath(full_path).c_str(), SW_SHOWNORMAL); |
+ NULL, NULL, full_path.value().c_str(), NULL, |
+ full_path.DirName().value().c_str(), SW_SHOWNORMAL); |
LONG_PTR error = reinterpret_cast<LONG_PTR>(h); |
if (error > 32) |