Commit 437f56f9 authored by dizg's avatar dizg Committed by Commit Bot

[signin] Add html file and BUILD file for new profile creation flow

Added profile_creation_flow/BUILD.gn, updated profile_picker/BUILD.gn,
added profile_type_choice.html and added this file to the
profile_picker_resources.grd as include.

R=droger@chromium.org, msalama@chromium.org, rbpotter@chromium.org
Bug: 1105865

Change-Id: I778223d1f7f576502e02c7fba4d20be805537c05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2300109
Commit-Queue: Diana Zagidullina <dizg@google.com>
Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Reviewed-by: default avatarMonica Basta <msalama@chromium.org>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789418}
parent bca1fd63
......@@ -5,8 +5,20 @@
import("//third_party/closure_compiler/compile_js.gni")
import("//tools/polymer/html_to_js.gni")
js_type_check("closure_compile") {
group("closure_compile") {
deps = [
":profile_picker_files",
"profile_creation_flow:closure_compile",
]
}
js_type_check("profile_picker_files") {
is_polymer3 = true
closure_flags =
default_closure_args + [
"js_module_root=../../chrome/browser/resources/signin/profile_picker/",
"js_module_root=./gen/chrome/browser/resources/signin/profile_picker/",
]
deps = [
":profile_picker_app",
":profile_picker_main_view",
......@@ -45,7 +57,14 @@ js_library("manage_profiles_browser_proxy") {
externs_list = [ "$externs_path/chrome_send.js" ]
}
html_to_js("web_components") {
group("web_components") {
public_deps = [
":web_components_local",
"profile_creation_flow:web_components",
]
}
html_to_js("web_components_local") {
js_files = [
"profile_picker_app.js",
"profile_picker_main_view.js",
......
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/closure_compiler/compile_js.gni")
import("//tools/polymer/html_to_js.gni")
js_type_check("closure_compile") {
is_polymer3 = true
deps = [ ":profile_type_choice" ]
}
js_library("profile_type_choice") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
}
html_to_js("web_components") {
js_files = [ "profile_type_choice.js" ]
}
......@@ -7,5 +7,5 @@ import {html, Polymer} from 'chrome://resources/polymer/v3_0/polymer/polymer_bun
Polymer({
is: 'profile-type-choice',
_template: html`<div> Profile type choice </div>`,
_template: html`{__html_template__}`,
});
......@@ -28,6 +28,9 @@
<include name="IDR_PROFILE_PICKER_PROFILE_CARD_JS"
file="${root_gen_dir}/chrome/browser/resources/signin/profile_picker/profile_card.js"
use_base_dir="false" type="BINDATA" preprocess="true"/>
<include name="IDR_PROFILE_PICKER_PROFILE_CREATION_FLOW_PROFILE_TYPE_CHOICE_JS"
file="${root_gen_dir}/chrome/browser/resources/signin/profile_picker/profile_creation_flow/profile_type_choice.js"
use_base_dir="false" type="BINDATA"/>
</includes>
<structures>
<structure
......@@ -55,11 +58,6 @@
file="profile_creation_flow/ensure_lazy_loaded.js"
type="chrome_html"
compress="false"/>
<structure
name="IDR_PROFILE_PICKER_PROFILE_TYPE_INPUT_JS"
file="profile_creation_flow/profile_type_choice.js"
type="chrome_html"
compress="false"/>
<structure
name="IDR_PROFILE_PICKER_MANAGE_PROFILES_BROWSER_PROXY_JS"
file="manage_profiles_browser_proxy.js"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment