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 601ef06..923d957d8 100644
--- a/chrome_frame/chrome_tab.cc
+++ b/chrome_frame/chrome_tab.cc
@@ -61,10 +61,10 @@ class ChromeTabModule
}
if (SUCCEEDED(hr)) {
- FilePath app_path =
- chrome_launcher::GetChromeExecutablePath().DirName();
- hr = registrar->AddReplacement(L"CHROME_APPPATH",
- app_path.value().c_str());
+ std::wstring app_path(
+ chrome_launcher::GetChromeExecutablePath());
+ app_path = file_util::GetDirectoryFromPath(app_path);
+ hr = registrar->AddReplacement(L"CHROME_APPPATH", app_path.c_str());
DCHECK(SUCCEEDED(hr));
}