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

import("//ui/webui/resources/tools/build_webui.gni")

assert(is_chromeos)

build_webui("build") {
  grd_prefix = "account_manager"

  static_files = [
    "account_manager_error.html",
    "account_migration_welcome.html",
  ]

  if (is_chrome_branded) {
    static_files += [
      "account_manager_welcome_1x.png",
      "account_manager_welcome_2x.png",
    ]
  }

  web_component_files = [
    "account_manager_error_app.js",
    "account_migration_welcome_app.js",
    "components/error_screen.js",
  ]

  ts_files = [ "account_manager_browser_proxy.js" ]

  css_files = [ "account_manager_shared.css" ]

  ts_deps = [
    "//ash/webui/common/resources:build_ts",
    "//ash/webui/common/resources/cr_elements:build_ts",
    "//third_party/polymer/v3_0:library",
  ]

  ts_composite = true

  webui_context_type = "trusted"
}
