From 15e093c9972a9ab2c7dedf23e8a8766fdfc3a41d Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Fri, 7 Jan 2011 02:12:15 +0000 Subject: Use FilePath::DirName instead of the deprecated file_util::GetDirectoryFromPath. Fix the callers and remove the deprecated function. BUG=24672 TEST=trybots Review URL: http://codereview.chromium.org/6111003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70705 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/installer/util/shell_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/installer/util/shell_util.cc') diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc index 1c90453..8d4e643 100644 --- a/chrome/installer/util/shell_util.cc +++ b/chrome/installer/util/shell_util.cc @@ -785,7 +785,7 @@ bool ShellUtil::UpdateChromeShortcut(BrowserDistribution* dist, const std::wstring& shortcut, const std::wstring& description, bool create_new) { - std::wstring chrome_path = file_util::GetDirectoryFromPath(chrome_exe); + std::wstring chrome_path = FilePath(chrome_exe).DirName().value(); FilePath prefs_path(chrome_path); prefs_path = prefs_path.AppendASCII(installer::kDefaultMasterPrefs); -- cgit v1.1