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

Unified Diff: net/ftp/ftp_directory_listing_parser_ls.cc

Issue 2090713003: Make callers of FromUTC(Local)Exploded in net/ use new time API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years 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
Index: net/ftp/ftp_directory_listing_parser_ls.cc
diff --git a/net/ftp/ftp_directory_listing_parser_ls.cc b/net/ftp/ftp_directory_listing_parser_ls.cc
index 1737ebab18b3336b668374a74650bb9bf03a6577..9ce1973756da6bad40d25e8afc47fd31c045d37b 100644
--- a/net/ftp/ftp_directory_listing_parser_ls.cc
+++ b/net/ftp/ftp_directory_listing_parser_ls.cc
@@ -53,8 +53,7 @@ bool TwoColumnDateListingToTime(const base::string16& date,
return false;
// We don't know the time zone of the server, so just use UTC.
- *result = base::Time::FromUTCExploded(time_exploded);
- return true;
+ return base::Time::FromUTCExploded(time_exploded, result);
}
// Returns the column index of the end of the date listing and detected

Powered by Google App Engine
This is Rietveld 408576698