summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/welcome/ntp_background/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/welcome/ntp_background/BUILD.gn')
-rw-r--r--chromium/chrome/browser/resources/welcome/ntp_background/BUILD.gn40
1 files changed, 27 insertions, 13 deletions
diff --git a/chromium/chrome/browser/resources/welcome/ntp_background/BUILD.gn b/chromium/chrome/browser/resources/welcome/ntp_background/BUILD.gn
index 32399f99cf3..09daeacfd15 100644
--- a/chromium/chrome/browser/resources/welcome/ntp_background/BUILD.gn
+++ b/chromium/chrome/browser/resources/welcome/ntp_background/BUILD.gn
@@ -3,8 +3,13 @@
# found in the LICENSE file.
import("//third_party/closure_compiler/compile_js.gni")
-
+import("//tools/polymer/polymer.gni")
js_type_check("closure_compile") {
+ is_polymer3 = true
+ closure_flags = default_closure_args + [
+ "js_module_root=../../chrome/browser/resources/welcome/",
+ "js_module_root=gen/chrome/browser/resources/welcome/",
+ ]
deps = [
":ntp_background_metrics_proxy",
":ntp_background_proxy",
@@ -12,27 +17,36 @@ js_type_check("closure_compile") {
]
}
-js_library("nux_ntp_background") {
+js_library("ntp_background_proxy") {
deps = [
":ntp_background_metrics_proxy",
- ":ntp_background_proxy",
- "../:navigation_behavior",
- "../shared:nux_types",
- "//ui/webui/resources/js:cr",
- "//ui/webui/resources/js:i18n_behavior",
- "//ui/webui/resources/js:util",
+ "//ui/webui/resources/js:cr.m",
]
+ externs_list = [ "$externs_path/chrome_send.js" ]
}
-js_library("ntp_background_proxy") {
+js_library("ntp_background_metrics_proxy") {
deps = [
- "//ui/webui/resources/js:cr",
+ "../shared:module_metrics_proxy",
+ "//ui/webui/resources/js:cr.m",
]
- externs_list = [ "$externs_path/chrome_send.js" ]
}
-js_library("ntp_background_metrics_proxy") {
+polymer_modulizer("nux_ntp_background") {
+ js_file = "nux_ntp_background.js"
+ html_file = "nux_ntp_background.html"
+ html_type = "v3-ready"
+}
+
+js_library("nux_ntp_background") {
deps = [
- "../shared:module_metrics_proxy",
+ ":ntp_background_metrics_proxy",
+ ":ntp_background_proxy",
+ "../:navigation_behavior",
+ "../shared:nux_types",
+ "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
+ "//ui/webui/resources/js:cr.m",
+ "//ui/webui/resources/js:i18n_behavior.m",
+ "//ui/webui/resources/js:util.m",
]
}