summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_tab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/chrome_tab.cc')
-rw-r--r--chrome_frame/chrome_tab.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome_frame/chrome_tab.cc b/chrome_frame/chrome_tab.cc
index 923d957d8..601ef06 100644
--- a/chrome_frame/chrome_tab.cc
+++ b/chrome_frame/chrome_tab.cc
@@ -61,10 +61,10 @@ class ChromeTabModule
}
if (SUCCEEDED(hr)) {
- std::wstring app_path(
- chrome_launcher::GetChromeExecutablePath());
- app_path = file_util::GetDirectoryFromPath(app_path);
- hr = registrar->AddReplacement(L"CHROME_APPPATH", app_path.c_str());
+ FilePath app_path =
+ chrome_launcher::GetChromeExecutablePath().DirName();
+ hr = registrar->AddReplacement(L"CHROME_APPPATH",
+ app_path.value().c_str());
DCHECK(SUCCEEDED(hr));
}