chromium/ash/webui/eche_app_ui/apps_launch_info_provider.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/webui/eche_app_ui/apps_launch_info_provider.h"

#include "ash/webui/eche_app_ui/mojom/eche_app.mojom-shared.h"

namespace ash::eche_app {

AppsLaunchInfoProvider::AppsLaunchInfoProvider(
    EcheConnectionStatusHandler* connection_handler)
    : eche_connection_status_handler_(connection_handler) {}

void AppsLaunchInfoProvider::SetAppLaunchInfo(
    mojom::AppStreamLaunchEntryPoint entry_point) {
  entry_point_ = entry_point;
  last_connection_ =
      eche_connection_status_handler_->connection_status_for_ui();
}

}  // namespace ash::eche_app