Skip to content

Commit

Permalink
Move build_webui.gni under ui/webui/resources/tools
Browse files Browse the repository at this point in the history
This is a step forward to make //content not reference //chrome
stuff.
Note that during this intermediate step, //ui will reference //chrome, but it will be fixed right next when moving build_webui.gni's sibling optimize_webui.gni (see relation chain).

BUG=1412915

Change-Id: If1c7cbefb560300d1856ed7948fdaec5ae9bb88d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4244660
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1105617}
  • Loading branch information
tonikitoo authored and Chromium LUCI CQ committed Feb 15, 2023
1 parent 00e714a commit 282f5c4
Show file tree
Hide file tree
Showing 74 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion ash/webui/common/resources/office_fallback/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
assert(is_chromeos_ash, "The office fallback dialog is ash-chrome only")
Expand Down
2 changes: 1 addition & 1 deletion ash/webui/guest_os_installer/resources/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(is_chromeos_ash)

Expand Down
2 changes: 1 addition & 1 deletion ash/webui/personalization_app/resources/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//ui/webui/resources/tools/build_webui.gni")
import("//ui/webui/webui_features.gni")

assert(is_chromeos_ash)
Expand Down
2 changes: 1 addition & 1 deletion ash/webui/print_management/resources/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(is_chromeos_ash)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/access_code_cast/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android, "access_code_cast is not for android.")

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/app_home/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android)
assert(!is_chromeos)
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/app_service_internals/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "app_service_internals"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/app_settings/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(is_win || is_mac || is_linux || is_fuchsia)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/bookmarks/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "bookmarks"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/browser_switch/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(is_win || is_mac || is_linux || is_chromeos_lacros || is_fuchsia)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/browsing_topics/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "browsing_topics_internals"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/chromeos/cloud_upload/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "cloud_upload"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(is_chromeos_ash)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/chromeos/vc_tray_tester/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "vc_tray_tester"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/commander/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "commander"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/connectors_internals/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "connectors_internals"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/discards/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android)
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/downloads/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/extensions/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//extensions/buildflags/buildflags.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(enable_extensions, "enable extensions check failed")

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/feed/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/feed_internals/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(is_android)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/feedback/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(!is_android)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/history/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//chrome/browser/resources/tools/build_webui.gni")
import("//extensions/buildflags/buildflags.gni")
import("//ui/webui/resources/tools/build_webui.gni")

build_webui("build") {
grd_prefix = "history"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/identity_internals/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/inline_login/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# found in the LICENSE file.

import("//chrome/browser/buildflags.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(!is_android)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/intro/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//components/signin/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(is_chromeos_lacros || enable_dice_support)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/lens/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chrome_build.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//tools/grit/grit_rule.gni")
import("//ui/webui/resources/tools/build_webui.gni")
import("//ui/webui/resources/tools/generate_grd.gni")

assert(toolkit_views)
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/management/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(!is_android, "!is_android check failed")

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "media"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android)
assert(is_chrome_branded)
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/new_tab_page_instant/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(is_linux || is_chromeos || is_win || is_mac || is_fuchsia)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/new_tab_page_third_party/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "new_tab_page_third_party"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/omnibox/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "omnibox"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/omnibox_popup/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android && !is_ios)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/password_manager/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "password_manager"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/print_preview/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import("//build/config/chromeos/ui_mode.gni")
import("//printing/buildflags/buildflags.gni")

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

assert(enable_print_preview, "enable_print_preview check failed")

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/privacy_sandbox/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(!is_android, "!is_android check failed")

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/profile_internals/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")

assert(!is_android)

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/segmentation_internals/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

build_webui("build") {
grd_prefix = "segmentation_internals"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/settings/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
import("//crypto/features.gni")
import("//third_party/closure_compiler/compile_js.gni")
import("//ui/webui/resources/tools/build_webui.gni")
import("//ui/webui/webui_features.gni")
import("./settings.gni")

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/resources/side_panel/bookmarks/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

assert(!is_android)

Expand Down
Loading

0 comments on commit 282f5c4

Please sign in to comment.