diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-24 01:58:57 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-24 01:58:57 +0000 |
commit | 202565195a9aa6247c0f387f02020f177bf0ea4a (patch) | |
tree | 6195c1989bb1305873e547bec147d93e70f35974 /chrome_frame | |
parent | 3b4d560aeeeec12648379cf33bb81b1027f874d6 (diff) | |
download | chromium_src-202565195a9aa6247c0f387f02020f177bf0ea4a.zip chromium_src-202565195a9aa6247c0f387f02020f177bf0ea4a.tar.gz chromium_src-202565195a9aa6247c0f387f02020f177bf0ea4a.tar.bz2 |
Use FilePath::BaseName instead of the deprecated file_util::GetFilenameFromPath. Part 2.
BUG=24672
TEST=trybots
Review URL: http://codereview.chromium.org/6091006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc index 565990b1..1cf9ec0 100644 --- a/chrome_frame/utils.cc +++ b/chrome_frame/utils.cc @@ -415,7 +415,7 @@ uint32 GetIEMajorVersion() { wchar_t exe_path[MAX_PATH]; HMODULE mod = GetModuleHandle(NULL); GetModuleFileName(mod, exe_path, arraysize(exe_path) - 1); - std::wstring exe_name(file_util::GetFilenameFromPath(exe_path)); + std::wstring exe_name = FilePath(exe_path).BaseName().value(); if (!LowerCaseEqualsASCII(exe_name, kIEImageName)) { ie_major_version = 0; } else { |