Ensure js_modulizer(), polymer_modulizer() are only used in CrOS.
These tools were supposed to only be used during the JS modules/Polymer3 migrations. Remaining usages should be removed as migrated code is checked-in instead of being auto-generated. Adding assertions to avoid any new usages in non-CrOS code. Bug: 1184053 Change-Id: I3d12a26a66a5be4131441891867e06b0c606047b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3930652 Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/main@{#1054251}
This commit is contained in:
chrome
browser
resources
chromeos
login
components
buttons
test
data
webui
cr_components
chromeos
network_health
tools/polymer
ui/webui/resources/tools
@ -4,6 +4,7 @@
|
||||
|
||||
import("//third_party/closure_compiler/compile_js.gni")
|
||||
import("//tools/polymer/polymer.gni")
|
||||
import("//ui/webui/resources/tools/js_modulizer.gni")
|
||||
import("../../oobe_auto_imports.gni")
|
||||
|
||||
group("polymer3_elements") {
|
||||
|
@ -3,7 +3,6 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//third_party/closure_compiler/compile_js.gni")
|
||||
import("//ui/webui/resources/tools/js_modulizer.gni")
|
||||
|
||||
js_type_check("closure_compile") {
|
||||
is_polymer3 = true
|
||||
|
@ -2,8 +2,11 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/chromeos/ui_mode.gni")
|
||||
import("//ui/webui/resources/tools/js_modulizer.gni")
|
||||
|
||||
assert(is_chromeos_ash)
|
||||
|
||||
common_auto_imports = [
|
||||
"third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.html|IronA11yAnnouncer",
|
||||
"third_party/polymer/v1_0/components-chromium/paper-behaviors/paper-ripple-behavior.html|PaperRippleBehavior",
|
||||
|
@ -2,6 +2,10 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/chromeos/ui_mode.gni")
|
||||
|
||||
assert(is_chromeos_ash)
|
||||
|
||||
common_namespace_rewrites = [
|
||||
"cr.addSingletonGetter|addSingletonGetter",
|
||||
"cr.addWebUIListener|addWebUIListener",
|
||||
|
Reference in New Issue
Block a user