Remove odd crap from new tab page

See screnshot: https://file-store.rosalinux.ru/download/57e6e8e31836d28825d635c9c75841107202686f

From chrome/browser/resources/new_tab_page/modules/BUILD.gn:

```
  if (!is_official_build) {
    deps += [ "dummy:module" ]
  }
```

Note that some other changes may appera, for example:

```
third_party/skia/third_party/freetype2/BUILD.gn:9:      (is_official_build || !(is_android || sanitize == "MSAN")) && !is_fuchsia
third_party/skia/third_party/harfbuzz/BUILD.gn:10:  skia_use_system_harfbuzz = is_official_build
third_party/skia/third_party/libjpeg-turbo/BUILD.gn:7:  skia_use_system_libjpeg_turbo = is_official_build
```
This commit is contained in:
Mikhail Novosyolov 2021-03-13 15:52:27 +03:00
parent 0b1a5058fa
commit 81854066c6

View file

@ -466,6 +466,7 @@ export PYTHONPATH="../../third_party/pyjson5/src:../../xcb-proto-%{xcb_version}"
# v NO TABS IN HERE!
%define gn_config use_sysroot=false \
%{target_cpu} \
is_official_build=true \
system_libdir="%{_lib}" \
icu_use_data_file=true \
enable_nacl=false \
@ -511,6 +512,12 @@ export PYTHONPATH="../../third_party/pyjson5/src:../../xcb-proto-%{xcb_version}"
# We don't need to cross compile while building on an aarch64 system.
sed -i 's|aarch64-linux-gnu-||g' build/toolchain/linux/BUILD.gn
# is_official_build triggers PGO with bundled profiles, but those profiles are for a specific
# version of clang/LLVM which does not match system one
%if %{without bundled_llvm}
sed -i -e 's,chrome_pgo_phase = 2,chrome_pgo_phase = 0,' build/config/compiler/pgo/pgo.gni
%endif
%if %{with bundled_llvm}
# Build clang from Google
# python2 tools/clang/scripts/build.py \