diff --git a/content_handler/application_controller_impl.cc b/content_handler/application_controller_impl.cc index 0d944fa99281533a1cd42ddfb8386365d674edce..73d8888bb653bfb3d1c5d8b5b11103c7102a965b 100644 --- a/content_handler/application_controller_impl.cc +++ b/content_handler/application_controller_impl.cc @@ -82,17 +82,18 @@ fdio_ns_t* ApplicationControllerImpl::SetupNamespace( FXL_LOG(ERROR) << "Failed to create namespace"; return nullptr; } - for (size_t i = 0; i < flat->paths.size(); ++i) { - if (flat->paths[i] == kServiceRootPath) { + for (size_t i = 0; i < flat->paths->size(); ++i) { + if (flat->paths->at(i) == kServiceRootPath) { // Ownership of /svc goes to the ApplicationContext created above. continue; } - zx::channel dir = std::move(flat->directories[i]); + zx::channel dir = std::move(flat->directories->at(i)); zx_handle_t dir_handle = dir.release(); - const char* path = flat->paths[i]->data(); + const char* path = flat->paths->at(i)->data(); status = fdio_ns_bind(fdio_namespc, path, dir_handle); if (status != ZX_OK) { - FXL_LOG(ERROR) << "Failed to bind " << flat->paths[i] << " to namespace"; + FXL_LOG(ERROR) << "Failed to bind " << flat->paths->at(i) + << " to namespace"; zx_handle_close(dir_handle); fdio_ns_destroy(fdio_namespc); return nullptr; diff --git a/content_handler/session_connection.cc b/content_handler/session_connection.cc index 790ffd02b82a3643a236058e9706902914806c9b..e003e92bd0842af0f7d81124783d28752e29f7e3 100644 --- a/content_handler/session_connection.cc +++ b/content_handler/session_connection.cc @@ -40,7 +40,7 @@ void SessionConnection::OnSessionError() { void SessionConnection::OnSessionEvents(f1dl::Array events) { ui::gfx::MetricsPtr new_metrics; - for (const auto& event : events) { + for (const auto& event : *events) { if (event->is_gfx() && event->get_gfx()->is_metrics() && event->get_gfx()->get_metrics()->node_id == root_node_.id()) { new_metrics = std::move(event->get_gfx()->get_metrics()->metrics);