summaryrefslogtreecommitdiff
path: root/absl/time/internal/cctz/src/time_zone_lookup.cc
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-06-29 09:41:29 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-06-29 09:43:43 -0700
commitb35ae3281ac7be49b42dc574403ff5fbcf1788fb (patch)
tree4b8d9d77e37863cb91ebe525668f0a451d3150f9 /absl/time/internal/cctz/src/time_zone_lookup.cc
parent736458b555768b8d8d97883eab57ad54c5c9fc1a (diff)
Import of CCTZ from GitHub.
PiperOrigin-RevId: 457997580 Change-Id: I39d007d4f93c02e07ad660df13d9f63e786182f8
Diffstat (limited to 'absl/time/internal/cctz/src/time_zone_lookup.cc')
-rw-r--r--absl/time/internal/cctz/src/time_zone_lookup.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/absl/time/internal/cctz/src/time_zone_lookup.cc b/absl/time/internal/cctz/src/time_zone_lookup.cc
index 898d04c1..84aa037a 100644
--- a/absl/time/internal/cctz/src/time_zone_lookup.cc
+++ b/absl/time/internal/cctz/src/time_zone_lookup.cc
@@ -31,7 +31,7 @@
#if defined(__Fuchsia__)
#include <fuchsia/intl/cpp/fidl.h>
#include <lib/async-loop/cpp/loop.h>
-#include <lib/sys/cpp/component_context.h>
+#include <lib/fdio/directory.h>
#include <zircon/types.h>
#endif
@@ -160,11 +160,11 @@ time_zone local_time_zone() {
// would be set to null when the loop is destroyed, causing any other FIDL
// code running on the same thread to crash.
async::Loop loop(&kAsyncLoopConfigNeverAttachToThread);
- std::unique_ptr<sys::ComponentContext> context =
- sys::ComponentContext::Create();
fuchsia::intl::PropertyProviderHandle handle;
- zx_status_t status = context->svc()->Connect(handle.NewRequest());
+ zx_status_t status = fdio_service_connect_by_name(
+ fuchsia::intl::PropertyProvider::Name_,
+ handle.NewRequest().TakeChannel().release());
if (status != ZX_OK) {
return;
}