diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-15 15:54:27 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-15 15:54:27 +0000 |
commit | 07c9ebf42b347c591a02583b7e65bcd496be2fd4 (patch) | |
tree | 8efefcf8c4da10dcb32130d59a23b93c20fde456 /net | |
parent | 16dfe1002323274a796c1fe79b3a991857c28270 (diff) | |
download | chromium_src-07c9ebf42b347c591a02583b7e65bcd496be2fd4.zip chromium_src-07c9ebf42b347c591a02583b7e65bcd496be2fd4.tar.gz chromium_src-07c9ebf42b347c591a02583b7e65bcd496be2fd4.tar.bz2 |
Use Extension method from FilePath API instead of the deprecated GetFileExtensionFromPath function.
BUG=None
TEST=compiles
Patch from Thiago Farina <thiago.farina@gmail.com>.
Review URL: http://codereview.chromium.org/604049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/url_request/url_request_file_job.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/url_request/url_request_file_job.cc b/net/url_request/url_request_file_job.cc index 8e1b7dc..eae8d27 100644 --- a/net/url_request/url_request_file_job.cc +++ b/net/url_request/url_request_file_job.cc @@ -273,15 +273,12 @@ void URLRequestFileJob::DidRead(int result) { NotifyReadComplete(result); } -bool URLRequestFileJob::IsRedirectResponse( - GURL* location, int* http_status_code) { +bool URLRequestFileJob::IsRedirectResponse(GURL* location, + int* http_status_code) { #if defined(OS_WIN) - std::wstring extension = - file_util::GetFileExtensionFromPath(file_path_.value()); - // Follow a Windows shortcut. // We just resolve .lnk file, ignore others. - if (!LowerCaseEqualsASCII(extension, "lnk")) + if (!LowerCaseEqualsASCII(file_path_.Extension(), ".lnk")) return false; FilePath new_path = file_path_; |