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
@@ -78,6 +78,15 @@ std::string GetTimeString(const CefTime& value) {
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string GetTimeString(const CefBaseTime& value) {
|
||||
CefTime time;
|
||||
if (cef_time_from_basetime(value, &time)) {
|
||||
return GetTimeString(time);
|
||||
} else {
|
||||
return "Invalid";
|
||||
}
|
||||
}
|
||||
|
||||
std::string GetBinaryString(CefRefPtr<CefBinaryValue> value) {
|
||||
if (!value.get())
|
||||
return " ";
|
||||
|
Reference in New Issue
Block a user