summaryrefslogtreecommitdiff
path: root/chromium/fuchsia/runners/web/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/fuchsia/runners/web/main.cc')
-rw-r--r--chromium/fuchsia/runners/web/main.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/chromium/fuchsia/runners/web/main.cc b/chromium/fuchsia/runners/web/main.cc
index 719419d8350..267fe44de47 100644
--- a/chromium/fuchsia/runners/web/main.cc
+++ b/chromium/fuchsia/runners/web/main.cc
@@ -5,14 +5,15 @@
#include <lib/sys/cpp/component_context.h>
#include "base/command_line.h"
-#include "base/fuchsia/default_context.h"
#include "base/fuchsia/file_utils.h"
+#include "base/fuchsia/process_context.h"
#include "base/fuchsia/scoped_service_binding.h"
#include "base/message_loop/message_pump_type.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_executor.h"
#include "fuchsia/base/fuchsia_dir_scheme.h"
#include "fuchsia/base/init_logging.h"
+#include "fuchsia/base/inspect.h"
#include "fuchsia/runners/buildflags.h"
#include "fuchsia/runners/common/web_content_runner.h"
@@ -60,12 +61,12 @@ int main(int argc, char** argv) {
WebContentRunner runner(std::move(get_context_params_callback));
base::fuchsia::ScopedServiceBinding<fuchsia::sys::Runner> binding(
- base::fuchsia::ComponentContextForCurrentProcess()->outgoing().get(),
- &runner);
+ base::ComponentContextForProcess()->outgoing().get(), &runner);
- base::fuchsia::ComponentContextForCurrentProcess()
- ->outgoing()
- ->ServeFromStartupInfo();
+ base::ComponentContextForProcess()->outgoing()->ServeFromStartupInfo();
+
+ // Publish version information for this component to Inspect.
+ cr_fuchsia::PublishVersionInfoToInspect(base::ComponentInspectorForProcess());
// Run until there are no Components, or the last service client channel is
// closed.