From d1e2779bf10ba02eb1ac7a64b9b2386776112b8f Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Thu, 15 Oct 2009 02:22:58 +0000 Subject: Chrome frame compile fix, take 2. tbr=nsylvain Review URL: http://codereview.chromium.org/274063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29081 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/chrome_tab.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome_frame/chrome_tab.cc') 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)); } -- cgit v1.1