Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: net/url_request/url_request_file_job.cc

Issue 173181: Remove uses of deprecated version of FileUtil::ResolveShortcut.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: rewritten comment Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/file_util_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_file_job.cc
===================================================================
--- net/url_request/url_request_file_job.cc (revision 24065)
+++ net/url_request/url_request_file_job.cc (working copy)
@@ -280,7 +280,7 @@
if (!LowerCaseEqualsASCII(extension, "lnk"))
return false;
- std::wstring new_path = file_path_.value();
+ FilePath new_path = file_path_;
bool resolved;
resolved = file_util::ResolveShortcut(&new_path);
@@ -288,7 +288,7 @@
if (!resolved)
return false;
- *location = net::FilePathToFileURL(FilePath(new_path));
+ *location = net::FilePathToFileURL(new_path);
*http_status_code = 301;
return true;
#else
« no previous file with comments | « base/file_util_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698