mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefBaseTime and use it instead of CefTime (see issue #2935)
This commit is contained in:
committed by
Marshall Greenblatt
parent
987b932a19
commit
27d3089804
@ -6,6 +6,7 @@
|
||||
#include <time.h>
|
||||
#include "base/logging.h"
|
||||
#include "base/notreached.h"
|
||||
#include "base/time/time.h"
|
||||
#include "include/cef_stream.h"
|
||||
|
||||
// Static functions
|
||||
@ -180,13 +181,11 @@ int64 CefZipReaderImpl::GetFileSize() {
|
||||
return filesize_;
|
||||
}
|
||||
|
||||
CefTime CefZipReaderImpl::GetFileLastModified() {
|
||||
CefTime time;
|
||||
CefBaseTime CefZipReaderImpl::GetFileLastModified() {
|
||||
if (!VerifyContext() || !GetFileInfo())
|
||||
return time;
|
||||
return CefBaseTime();
|
||||
|
||||
cef_time_from_timet(filemodified_, &time);
|
||||
return time;
|
||||
return base::Time::FromTimeT(filemodified_);
|
||||
}
|
||||
|
||||
bool CefZipReaderImpl::OpenFile(const CefString& password) {
|
||||
|
Reference in New Issue
Block a user