| Index: net/url_request/url_request_ftp_job.cc
|
| ===================================================================
|
| --- net/url_request/url_request_ftp_job.cc (revision 5643)
|
| +++ net/url_request/url_request_ftp_job.cc (working copy)
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "base/message_loop.h"
|
| #include "base/string_util.h"
|
| +#include "base/time.h"
|
| #include "net/base/auth.h"
|
| #include "net/base/load_flags.h"
|
| #include "net/base/net_util.h"
|
| @@ -378,8 +379,8 @@
|
| // We don't know the encoding, and can't assume utf8, so pass the 8bit
|
| // directly to the browser for it to decide.
|
| string file_entry = net::GetDirectoryListingEntry(
|
| - find_data_.cFileName, find_data_.dwFileAttributes, size,
|
| - &find_data_.ftLastWriteTime);
|
| + find_data_.cFileName, false, size,
|
| + base::Time::FromFileTime(find_data_.ftLastWriteTime));
|
| WriteData(&file_entry, true);
|
|
|
| FindNextFile();
|
| @@ -401,7 +402,7 @@
|
| // If this isn't top level directory (i.e. the path isn't "/",) add a link to
|
| // the parent directory.
|
| if (request_->url().path().length() > 1)
|
| - html.append(net::GetDirectoryListingEntry("..", 0, 0, NULL));
|
| + html.append(net::GetDirectoryListingEntry("..", false, 0, base::Time()));
|
|
|
| WriteData(&html, true);
|
|
|
|
|