diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-07 02:12:15 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-07 02:12:15 +0000 |
commit | 15e093c9972a9ab2c7dedf23e8a8766fdfc3a41d (patch) | |
tree | 17e461be1e026df050079159ca803c57d656c0cd /chrome/installer/util/shell_util.cc | |
parent | 7e6fa7c3f4c3db8f8fe9f1eec8b0a48432e8f6bb (diff) | |
download | chromium_src-15e093c9972a9ab2c7dedf23e8a8766fdfc3a41d.zip chromium_src-15e093c9972a9ab2c7dedf23e8a8766fdfc3a41d.tar.gz chromium_src-15e093c9972a9ab2c7dedf23e8a8766fdfc3a41d.tar.bz2 |
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
Diffstat (limited to 'chrome/installer/util/shell_util.cc')
-rw-r--r-- | chrome/installer/util/shell_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |