mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:31:57 +00:00
[fuchsia] Renaming component FIDL to fuchsia.sys.
Bug: https://fuchsia.atlassian.net/browse/CP-39 Change-Id: Id66157f592a005d555d6f406e56a75a8cf6aeb48 Reviewed-on: https://dart-review.googlesource.com/57160 Reviewed-by: Zach Anderson <zra@google.com>
This commit is contained in:
parent
13987b073d
commit
f50873d345
|
@ -44,7 +44,7 @@ static zx_status_t GetLocalAndDstOffsetInSeconds(int64_t seconds_since_epoch,
|
||||||
int32_t* local_offset,
|
int32_t* local_offset,
|
||||||
int32_t* dst_offset) {
|
int32_t* dst_offset) {
|
||||||
time_zone::TimezoneSyncPtr time_svc;
|
time_zone::TimezoneSyncPtr time_svc;
|
||||||
component::ConnectToEnvironmentService(time_svc.NewRequest());
|
fuchsia::sys::ConnectToEnvironmentService(time_svc.NewRequest());
|
||||||
if (!time_svc->GetTimezoneOffsetMinutes(seconds_since_epoch * 1000,
|
if (!time_svc->GetTimezoneOffsetMinutes(seconds_since_epoch * 1000,
|
||||||
local_offset, dst_offset))
|
local_offset, dst_offset))
|
||||||
return ZX_ERR_UNAVAILABLE;
|
return ZX_ERR_UNAVAILABLE;
|
||||||
|
@ -57,7 +57,7 @@ const char* OS::GetTimeZoneName(int64_t seconds_since_epoch) {
|
||||||
// TODO(abarth): Handle time zone changes.
|
// TODO(abarth): Handle time zone changes.
|
||||||
static const auto* tz_name = new std::string([] {
|
static const auto* tz_name = new std::string([] {
|
||||||
time_zone::TimezoneSyncPtr time_svc;
|
time_zone::TimezoneSyncPtr time_svc;
|
||||||
component::ConnectToEnvironmentService(time_svc.NewRequest());
|
fuchsia::sys::ConnectToEnvironmentService(time_svc.NewRequest());
|
||||||
fidl::StringPtr result;
|
fidl::StringPtr result;
|
||||||
time_svc->GetTimezoneId(&result);
|
time_svc->GetTimezoneId(&result);
|
||||||
return *result;
|
return *result;
|
||||||
|
|
Loading…
Reference in a new issue