0
Commit Graph

220 Commits

Author SHA1 Message Date
Lei Zhang
1ddeadb16a Add a presubmit check to ban deprecated DISALLOW_* macros.
Warn developers that these macros are deprecated to help prevent new
usage.

Bug: 1010217
Change-Id: I7aeec1d4bd402057cecc0a41d3c3ea21df0e1b61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2908126
Auto-Submit: Lei Zhang <thestig@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#885250}
2021-05-20 22:14:34 +00:00
Lei Zhang
ed37780cba Remove some presubmit checks for deprecated Mojo types.
The Mojo types being checked for are gone.

Change-Id: If47df6eee609508dd23385e2ffc444c652fa5775
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2908718
Auto-Submit: Lei Zhang <thestig@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Ken Rockot <rockot@google.com>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#885247}
2021-05-20 22:12:28 +00:00
Dirk Pranke
e3c9c62d25 Reland "Migrate //PRESUBMIT*.py to Python3."
This reverts commit abee50a262.

Reason for revert: Underlying fix to
tools/translation/helper/git_helper has landed.

Original change's description:
> Revert "Migrate //PRESUBMIT*.py to Python3."
>
> This reverts commit 8b59f97def.
>
> Reason for revert:
> Breaks uploading CLs which change localized strings. See
> https://bugs.chromium.org/p/chromium/issues/detail?id=1209392.
>
> Original change's description:
> > Migrate //PRESUBMIT*.py to Python3.
> >
> > This CL migrates the root-level PRESUBMIT checks, their associated
> > tests, and and one other file that got pulled along for the ride)
> > to run under Python3 instead of Python2.
> >
> > Bug: 816629
> > Change-Id: I75f3edb34ca72458432ba54f3afa022e027f8eb9
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877897
> > Commit-Queue: Dirk Pranke <dpranke@google.com>
> > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#883002}
>
> Bug: 816629
> Fixed: 1209392
> Change-Id: Icf0c084f1db3d20ca76600eb67cc3f6e81b3c9f9
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2899404
> Auto-Submit: Kyle Horimoto <khorimoto@chromium.org>
> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Owners-Override: Yutaka Hirano <yhirano@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#883359}

Bug: 816629
Change-Id: Ie70748076c06e3ebcacd18e3d69f105d94a5e5ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2901242
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#884028}
2021-05-18 18:35:59 +00:00
Kyle Horimoto
abee50a262 Revert "Migrate //PRESUBMIT*.py to Python3."
This reverts commit 8b59f97def.

Reason for revert:
Breaks uploading CLs which change localized strings. See
https://bugs.chromium.org/p/chromium/issues/detail?id=1209392.

Original change's description:
> Migrate //PRESUBMIT*.py to Python3.
>
> This CL migrates the root-level PRESUBMIT checks, their associated
> tests, and and one other file that got pulled along for the ride)
> to run under Python3 instead of Python2.
>
> Bug: 816629
> Change-Id: I75f3edb34ca72458432ba54f3afa022e027f8eb9
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877897
> Commit-Queue: Dirk Pranke <dpranke@google.com>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#883002}

Bug: 816629
Fixed: 1209392
Change-Id: Icf0c084f1db3d20ca76600eb67cc3f6e81b3c9f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2899404
Auto-Submit: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#883359}
2021-05-17 04:04:41 +00:00
Dirk Pranke
8b59f97def Migrate //PRESUBMIT*.py to Python3.
This CL migrates the root-level PRESUBMIT checks, their associated
tests, and and one other file that got pulled along for the ride)
to run under Python3 instead of Python2.

Bug: 816629
Change-Id: I75f3edb34ca72458432ba54f3afa022e027f8eb9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877897
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#883002}
2021-05-14 16:39:40 +00:00
Lei Zhang
0643e34202 Fix bad regex in CheckForSuperfluousStlIncludesInHeaders presubmit.
It is currently matching more than it should.

Bug: 1200833
Change-Id: I99f7e2cb73cabbc8ed6e862b352abfacc647d4e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2892529
Auto-Submit: Lei Zhang <thestig@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#882158}
2021-05-12 18:02:12 +00:00
Lei Zhang
1c12a22fc6 Add a presubmit check for obviously superfluous STL includes in headers.
Bug: 1200833
Change-Id: Id82bae60feebe8bb1df07d9e6128f61aa6d18e4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2890889
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881974}
2021-05-12 11:28:45 +00:00
Peter Kasting
9ca8a38a28 Ban UTF8ToUTF16 on compile-time string constants.
Bug: 1189439
Change-Id: I582d13c4a0ba26320b0d4530483cd8e4ba3eb87a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881379
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881847}
2021-05-12 03:08:22 +00:00
Dirk Pranke
89f95de3d6 Remove GetTryServerMaster code from //PRESUBMIT.py.
I think this code is long-obsolete but I guess we never got around
to deleting it.

Change-Id: I60b53b675ddce429ab62f1445bddafa0452942ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881836
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#881590}
2021-05-11 17:39:22 +00:00
Devlin Cronin
0cefab3944 Remove API-specific checks for deprecated apps code commits
https://crrev.com/2b456f2d8f2e6c0bfd3b12dff34f2df974816825 added a
check for any JS files that used a series of app and extension APIs
and signaled a warning if these APIs were used. However, many (or
even the majority) of these APIs are exposed to contexts beyond
Chrome Apps, including extensions, web contexts, and WebUI. This
results in developers in these areas receiving noisy presubmit
errors (and encourages ignoring them altogether).

Remove all of these and add a TODO to add back in the list of APIs
that is exposed exclusively to Chrome Apps.

This does not affect the checks added for nacl, pnacl, or others.

Bug: b:160753993
Change-Id: I651117f4bfccb5f2e02eee8d497f0b865d9d5f1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877683
Auto-Submit: Devlin <rdevlin.cronin@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#880080}
2021-05-06 21:38:33 +00:00
Peter Kasting
dc3e1ec831 Ban ASCIIToUTF16() on constant string literals.
Bug: 1189439
Change-Id: I8d5340448469bd81b881ee4fa1539ff8ddf30312
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2869088
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#879653}
2021-05-06 01:32:33 +00:00
seanmccullough
4a935625e1 [chromium/src] Switch to canned CheckInclusiveLanguage PRESUBMIT check.
Change-Id: I4dd72e7c2c965940ec2824fc6e8b7ca01640ffff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2811478
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Sean McCullough <seanmccullough@chromium.org>
Cr-Commit-Position: refs/heads/master@{#870662}
2021-04-08 19:54:09 +00:00
Jan Wilken Dörrie
60df23641d [LSC] Add PRESUBMIT check for ASCIIToUTF16("...") and UTF8ToUTF16("...")
This change adds a presubmit warning for invoking base::ASCIIToUTF16 and
base::UTF8ToUTF16 with string literals. Instead, the UTF16 string
literal (u"...") should be used directly.

Furthermore, it uses a static_assert to force compilation errors for
usages of WideToUTF16 with a wide string literal.

Bug: 1189439
Change-Id: Ie2026b4632754fbfe0b0837bc0edfbe1366ae409
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2810414
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#870657}
2021-04-08 19:44:21 +00:00
Dirk Pranke
e2cbf0b8e5 Update the inclusive-language presubmit check to only check chromium src.
The //PRESUBMIT.py checks may sometimes be run on a bot that is actually
testing changes to a repo other than chromium src (e.g., v8 or ANGLE
or something). Sometimes it makes sense to run the presubmit changes
anyway, but the inclusive language check should only be run on actual
changes to chromium/src, since that's what the allowlist checks against.

This CL tweaks the check to exit early on changes for other repos, and
removes the temporary workaround we added earlier today in
f0b0b46c/#{868614).

Bug: 1194996
Change-Id: I0332768a655528e0de0fd52c63ee17ebc15b50e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2801150
Reviewed-by: Sean McCullough <seanmccullough@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#869219}
2021-04-05 18:51:52 +00:00
seanmccullough
f0b0b46ce0 [chromium/src PRESUBMIT] add failsafe for inclusive language check
If the exempt directories file is missing, just log and continue.

Bug: 1194996
Change-Id: Ibd2bad1c9a4f3f485fb7933dfea7a630400a3654
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2800492
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Sean McCullough <seanmccullough@chromium.org>
Cr-Commit-Position: refs/heads/master@{#868614}
2021-04-01 18:49:52 +00:00
seanmccullough
c68df895a7 [chromium/src PRESUBMIT] remove 'master' from inclusive lang. checks
Bug: 1177609
Depends-On: I6c7e86f0e43eeedba81c4ccd5c9b0206ac03d9db
Change-Id: If7af669c56f06fb7b7e87a0d2faed2641010d971
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2798273
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Eric Foo <efoo@chromium.org>
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Commit-Queue: Eric Foo <efoo@chromium.org>
Commit-Queue: Sean McCullough <seanmccullough@chromium.org>
Cr-Commit-Position: refs/heads/master@{#868281}
2021-03-31 23:09:33 +00:00
seanmccullough
eb9f9b91c4 [chromium/src PRESUBMIT] Add an inclusive language check
This ports over the PRESUBMIT added under infra/infra
https://chromium-review.googlesource.com/c/chromium/src/+/2718892
with some tweaks to fix things discovered:
https://chromium-review.googlesource.com/c/infra/infra/+/2737384

Note that as soon as this lands, it will start running on CLs when you
execute git cl upload. The PRESUBMIT will block submission unless
the offending line includes // nocheck

Bug: 1177609
Change-Id: I6c7e86f0e43eeedba81c4ccd5c9b0206ac03d9db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2744163
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Eric Foo <efoo@chromium.org>
Commit-Queue: Eric Foo <efoo@chromium.org>
Commit-Queue: Sean McCullough <seanmccullough@chromium.org>
Cr-Commit-Position: refs/heads/master@{#868250}
2021-03-31 21:12:28 +00:00
Henrique Ferreiro
bb1bb4a955 Migrate chrome/browser/{chromeos => ash}/arc [1/9]
accessibility/, adbd/, app_shortcuts/ and auth/ are moved to
chrome/browser/ash/arc/.

This CL is part of the Chrome OS source code directory migration:
https://docs.google.com/document/d/1g-98HpzA8XcoGBWUv1gQNr4rbnD5yfvbtYZyPDDbkaE.

Bug: 1164001
Change-Id: Icf055c934a8ddc337dab334aa44182fe42d818bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2760181
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Owners-Override: Henrique Ferreiro <hferreiro@igalia.com>
Owners-Override: Hidehiko Abe <hidehiko@chromium.org>
Auto-Submit: Henrique Ferreiro <hferreiro@igalia.com>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#864013}
2021-03-18 00:04:08 +00:00
Alexei Svitkine
64505a98c8 Fix user action presubmit error to ignore test files.
User actions logged by test files don't need to be added to
actions.xml. I hit this in a separate CL I'm working on.

Also fixes a line-too-long warning via wrapping.

Bug: 1171830
Change-Id: I2bb383dd070fad766b21ed4b467b2c5451d52a1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2753489
Auto-Submit: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#862151}
2021-03-11 22:00:54 +00:00
Jose Magana
2b456f2d8f Presubmit checks for ChromeApps deprecated technologies
Context: go/cros-0p-deprecation

Generates presubmit warning message if there are new or modified used cases for the technologies to be deprecated:
* NaCl
* PPAPI
* Chrome Apps

https://blog.chromium.org/2020/08/changes-to-chrome-app-support-timeline.html\n'
https://developer.chrome.com/docs/apps/migration/

Added android-internal-presubmit optional trybot as requested by cl upload message.
It fails because the files lack LGTM from an owner.

Bug: b:160753993
Change-Id: If5c2a699266eae241ba40ba46ddfefb051b650ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2712316
Commit-Queue: Jose Magana <jomag@chromium.org>
Auto-Submit: Jose Magana <jomag@chromium.org>
Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#861340}
2021-03-09 23:26:40 +00:00
James Cook
1b4dc13ac3 presubmit: Allow ForTesting() calls in _unittests (plural) files
There are a variety of foo_unitttests.cc files in the source tree.
The filenames are reasonable, because they contain tests for feature
"foo" rather than a specific class or function.

Many of these files contain unnecessary // IN-TEST comments next to
calls to ForTesting() functions. I suspect engineers added them
because PRESUBMIT.py complained. For an example, see:
https://chromium-review.googlesource.com/c/chromium/src/+/2712426

Update the regex that detects test suite files and add a unit test
to exercise it.

Fixed: 1185381
Change-Id: Id24c97d23b4962eaccc0b2a9e7f3a20c3003c359
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2740299
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: James Cook <jamescook@chromium.org>
Cr-Commit-Position: refs/heads/master@{#861325}
2021-03-09 22:45:13 +00:00
Nico Weber
1e049182e7 Remove gn from buildtools/DEPS
Projects will have to add entries for gn to their toplevel DEPS instead.

Add this to your `vars` section:

  'gn_version': 'git_revision:dfcbc6fed0a8352696f92d67ccad54048ad182b3',

And this to your `deps` section:

  'src/buildtools/linux64': {
    'packages': [
      {
        'package': 'gn/gn/linux-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
    'condition': 'host_os == "linux"',
  },
  'src/buildtools/mac': {
    'packages': [
      {
        'package': 'gn/gn/mac-${{arch}}',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
    'condition': 'host_os == "mac"',
  },
  'src/buildtools/win': {
    'packages': [
      {
        'package': 'gn/gn/windows-amd64',
        'version': Var('gn_version'),
      }
    ],
    'dep_type': 'cipd',
    'condition': 'host_os == "win"',
  },

Adopt to your project's style as you like.
(Maybe your toplevel directory is not called "src".)

angle and v8 for example do this already for example.

It looks like there's no way to have autoroller update this via transitive_dep,
and it looks like there's no way to have an autoroller for this at the chromium
level yet, see https://bugs.chromium.org/p/skia/issues/detail?id=11712
But it's the last thing keeping buildtools/DEPS around, and several projects
already don't use this hook, so let's remove it.

Bug: 1177288
Change-Id: I3d89361fcc95eebe91fd38ce854ce629f4117e7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2743918
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#861001}
2021-03-09 02:41:00 +00:00
Sean McCullough
f5cdfea58b Revert "[chromium/src presubmit] Add an inclusive language check function."
This reverts commit aad31b6d3d.

Reason for revert: We don't want this running on CI and blocking CLs just yet.

Original change's description:
> [chromium/src presubmit] Add an inclusive language check function.
>
> This change add a new check to prevent non-inlcusive language (e.g.
> 'blacklist', 'whitelist', 'master', 'slave') from being added to the
> repo.
>
> It includes a legacy allowlist file, which lists paths in the repo that
> should be temporarily exempted from this check while we clean up
> existing instances that have accumulated over the years.
>
> Bug: 1177609
> Change-Id: I0d51189134bc506fbe68eacddecdc88360bc86aa
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2718892
> Reviewed-by: Dirk Pranke <dpranke@google.com>
> Commit-Queue: Sean McCullough <seanmccullough@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#860006}

Bug: 1177609
Change-Id: I27355d772526ebf603292e259ba239b7f4eb26be
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2737142
Auto-Submit: Sean McCullough <seanmccullough@chromium.org>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#860034}
2021-03-05 00:41:15 +00:00
seanmccullough
aad31b6d3d [chromium/src presubmit] Add an inclusive language check function.
This change add a new check to prevent non-inlcusive language (e.g.
'blacklist', 'whitelist', 'master', 'slave') from being added to the
repo.

It includes a legacy allowlist file, which lists paths in the repo that
should be temporarily exempted from this check while we clean up
existing instances that have accumulated over the years.

Bug: 1177609
Change-Id: I0d51189134bc506fbe68eacddecdc88360bc86aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2718892
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Sean McCullough <seanmccullough@chromium.org>
Cr-Commit-Position: refs/heads/master@{#860006}
2021-03-04 23:27:09 +00:00
Nico Weber
ff3d9b36a6 buildtools: remove libc++ from buildtools/DEPS
This is very similar to
https://chromium-review.googlesource.com/c/chromium/src/+/2729355 ,
just with libcxx instead of libcxxabi. See that CL description for
details, except here you want to add

  'libcxx_revision':       '8fa87946779682841e21e2da977eccfb6cb3bded',

and a project-appropriate version of

  'src/buildtools/third_party/libc++/trunk':
    Var('chromium_git') +
    '/external/github.com/llvm/llvm-project/libcxx.git' + '@' +
    Var('libcxx_revision'),

(...and then add this as a transitive dep of your chromium roller,
as described in that other CL, like a bunch of projects have already
done.)

Bug: 1182719,1177288
Change-Id: I1362eb591f49111143733c036548670ee4004673
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2733154
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#859627}
2021-03-04 02:57:59 +00:00
John Abd-El-Malek
dfd1edc814 Update documentation to allow owners of public APIs that are used throughout the codebase to Owners-Override changes across the source tree.
Unlike LSC which is meant for work that spans dozens of CLs, this new change is meant for one-off CLs. It's similar to google3's global approvals mechanism.

base, build, blink, content and url were chosen as an initial set because they are used in many top level directories and are frequently changing.

Also add "set noparent" to top level directories to avoid inadvertent +1s from src/OWNERS bypass owners reviews sometimes.

Change-Id: Iaa397a5e09174139af21fee34dca390de132e216
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2688805
Auto-Submit: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#857391}
2021-02-24 22:22:40 +00:00
Nico Weber
94da3c1ef4 buildtools: Remove libunwind from buildtools/DEPS
If your project DEPS's in buildtools and needs libunwind, edit your
toplevel DEPS file to have something like

  'libunwind_revision':    'a2cc4f8c554dedcb0c64cac5511b19c43f1f3d32',

in its `vars =` section, and an entry similar to

  'src/buildtools/third_party/libunwind/trunk':
    Var('chromium_git') +
    '/external/github.com/llvm/llvm-project/libunwind.git' + '@' +
    Var('libunwind_revision'),

in its `deps =` section. Add libunwind_revision to your autoroller
that rolls //build and //tools/clang etc.

Since libunwind is only used in Fuchsia builds and for chrome/android's
sampling profiler, it's possible that no projects other than chromium
actually need this.

This makes it possible to set up an autoroller for libunwind for chromium.

Bug: 1177288
Change-Id: I7a59f11b015acc98b65f4b87a9277a5a3028328d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2713283
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#856453}
2021-02-22 21:39:02 +00:00
Edward Lesmes
1e9fade427 PRESUBMIT.py: Use owners client to list security owners.
Replace input_api.owners_db with input_api.owners_client will
simplify migration from Depot Tools owners to Gerrit native
code-owners.
Owners client is an abstraction that provides a common
interface to both Depot Tools and Gerrit owners backends.

Added `set noparent` to SECURITY_OWNERS.
This makes it easy to list security reviewers, as it is the
same as listing OWNERS of that file.

Change-Id: I6196177e61b1ce19f23cc2645a482b29b92c081d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2679444
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Cr-Commit-Position: refs/heads/master@{#851861}
2021-02-08 20:31:12 +00:00
Robert Sesek
351d2d5c03 Remove from mojo::DataPipe.
All callers have been converted to to mojo::CreateDataPipe.

Bug: 944990
Change-Id: Ibbd3eeb4dbb6e5a99d4475cadf0dac1b0a8a61a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2664006
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849331}
2021-02-02 01:47:07 +00:00
Ola Rozenfeld
355a1b4ead Upgrading reclient version to 0.19.2.
Also fixing PRESUBMIT to work on both Windows and Linux.

Bug: 1149386
Change-Id: I008a217724960a36748a31068ddc7976a965591f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2648619
Commit-Queue: Ola Rozenfeld <olaola@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#847041}
2021-01-26 03:41:57 +00:00
danakj
d18e88980c Reland: Prevent making invalid SkImageReps
Original CL: https://chromium-review.googlesource.com/c/chromium/src/+/2572896

Ensure that SkImageRep is always constructed with a valid bitmap.
Instead of constructing an invalid SkImageRep then throwing it away when
initializing an SkImage, we add an SkImage::CreateFromBitmap() that will
just return a null SkImage directly if the bitmap is null/uninitialized.

ImageSkia was creating a null ImageSkiaRep when searching for a
representation in order to force use of the nearest one, but it also
uses a boolean value to do the same, so stop making a null ImageSkiaRep.

Then disallow null/empty ImageSkiaRep and also disallow their transport
over mojo.

Remove a few tests that were creating invalid ImageSkiaReps to test that
they work - as they are no longer valid.

Have ImageSkia constructed from ImageSkiaOperations check for the
ImageSkiaRep that they get from their inner (non-null!) ImageSkia, as
that can still return a null ImageSkiaRep. In that case, the resulting
ImageSkiaRep must also be null. And we can do that without trying to
perform operations on the (invalid, null) bitmap inside the null
ImageSkiaRep.

This fixes the tests included in the CL. We no longer try to serialize
null or empty ImageSkiaRep since the class itself will not allow it. We
do test that we will not deserialize such invalid ImageSkiaReps. And a
test is also added to verify we do not allow non-n32 bitmaps to be
deserialized in ImageSkiaRep.

R=dcheng@chromium.org, sky@chromium.org

Bug: 1155258
Change-Id: Ia18360dcd2a59be8c49b7104f01dbdd20bbe6bbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2596131
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#838132}
2020-12-17 17:42:01 +00:00
Abhijeet Kandalkar
731d60582c Remove unwanted code from presubmit check
Commit(1e7c250) has added a presubmit warning to prevent further uses
of old downcast helpers. All the occurrences of old downcast helpers
are removed from the codebase and these changes are not needed now.

Bug: 891908
Change-Id: I0090438d1f8c835b153ae2d6d177389891948991
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2592539
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Abhijeet Kandalkar <abhijeet@igalia.com>
Cr-Commit-Position: refs/heads/master@{#837436}
2020-12-16 04:15:39 +00:00
Findit
c48b1a4a8d Revert "Prevent making invalid SkImageReps"
This reverts commit df3e91a120.

Reason for revert:

Findit (https://goo.gl/kROfz5) identified CL at revision 837373 as the
culprit for failures in the build cycles as shown on:
https://analysis.chromium.org/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3ItbWVyRAsSDVdmU3VzcGVjdGVkQ0wiMWNocm9taXVtL2RmM2U5MWExMjBkMjY4NDU4ZWYzNWNmNTdkNzhlNDAxODE1ZGZmOGQM

Sample Failed Build: https://ci.chromium.org/b/8860797505511259488

Sample Failed Step: gfx_unittests

Original change's description:
> Prevent making invalid SkImageReps
> 
> Ensure that SkImageRep is always constructed with a valid bitmap.
> Instead of constructing an invalid SkImageRep then throwing it away when
> initializing an SkImage, we add an SkImage::CreateFromBitmap() that will
> just return a null SkImage directly if the bitmap is null/uninitialized.
> 
> ImageSkia was creating a null ImageSkiaRep when searching for a
> representation in order to force use of the nearest one, but it also
> uses a boolean value to do the same, so stop making a null ImageSkiaRep.
> 
> Then disallow null/empty ImageSkiaRep and also disallow their transport
> over mojo.
> 
> Remove a few tests that were creating invalid ImageSkiaReps to test that
> they work - as they are no longer valid.
> 
> Have ImageSkia constructed from ImageSkiaOperations check for the
> ImageSkiaRep that they get from their inner (non-null!) ImageSkia, as
> that can still return a null ImageSkiaRep. In that case, the resulting
> ImageSkiaRep must also be null. And we can do that without trying to
> perform operations on the (invalid, null) bitmap inside the null
> ImageSkiaRep.
> 
> R=sky@chromium.org
> 
> Bug: 1155258
> Change-Id: Id7953743ca31804fa3d987677bb8c4962919fd35
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2572896
> Commit-Queue: danakj <danakj@chromium.org>
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Scott Violet <sky@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#837373}


Change-Id: If565d70cf106083108462ac7372ddaab252a18c8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1155258
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2594552
Cr-Commit-Position: refs/heads/master@{#837400}
2020-12-16 02:25:19 +00:00
danakj
df3e91a120 Prevent making invalid SkImageReps
Ensure that SkImageRep is always constructed with a valid bitmap.
Instead of constructing an invalid SkImageRep then throwing it away when
initializing an SkImage, we add an SkImage::CreateFromBitmap() that will
just return a null SkImage directly if the bitmap is null/uninitialized.

ImageSkia was creating a null ImageSkiaRep when searching for a
representation in order to force use of the nearest one, but it also
uses a boolean value to do the same, so stop making a null ImageSkiaRep.

Then disallow null/empty ImageSkiaRep and also disallow their transport
over mojo.

Remove a few tests that were creating invalid ImageSkiaReps to test that
they work - as they are no longer valid.

Have ImageSkia constructed from ImageSkiaOperations check for the
ImageSkiaRep that they get from their inner (non-null!) ImageSkia, as
that can still return a null ImageSkiaRep. In that case, the resulting
ImageSkiaRep must also be null. And we can do that without trying to
perform operations on the (invalid, null) bitmap inside the null
ImageSkiaRep.

R=sky@chromium.org

Bug: 1155258
Change-Id: Id7953743ca31804fa3d987677bb8c4962919fd35
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2572896
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#837373}
2020-12-16 01:08:40 +00:00
Joshua Peraza
1ca6d396d2 Don't require Fuchsia security review for Crashpad
Change-Id: I6743453668b1db418d7e6c043bcc3c48d6fe865d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575721
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834467}
2020-12-08 00:14:09 +00:00
Dominic Battre
645d4234a6 Check deprecation of preferences
It's a common mistake that developers just remove Register...Pref()
calls for preferences they don't need anymore. If they do this, the
preference stays in the prefs files on disk for ever. A proper approach
is to first ClearPref() the preference for some releases and then to
remove the code.

This CL introduces a presubmit warning if we detect that a
Register...Pref() call is removed from a non-unittest.

Bug: 1153014
Change-Id: If8f19933de039553ef47e0ddce12eb194df45ce1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560205
Commit-Queue: Dominic Battré <battre@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Reviewed-by: Dominic Battré <battre@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833730}
2020-12-04 16:14:10 +00:00
Andrew Grieve
1b290e4a22 Improve GN templates use of "visibility" and "testonly"
Many spots using forward_variables_from(invoker, "*") were not
allowing these two variables to be set in outer scopes.

* Introduce a helper variable "EXPLICIT_FORWARDS" for use with the
recommended pattern of:
  forward_variables_from(invoker, "*", [ "testonly", "visibility" ])
  forward_variables_from(invoker, [ "testonly", "visibility" ])
* Ensures this pattern is used in android templates, test.gni,
  and BUILDCONFIG.gn
* Documents this pattern in writing_gn_templates.md
* Adds a PRESUBMIT.py for it
* Fixes visibility of a few blink targets now that test()
  respects it.

Bug: 862232
Change-Id: Ib71dbf34be76131fc749c721aea856e1146bc69a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454427
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#830678}
2020-11-24 20:07:01 +00:00
Mohamed Heikal
5e5b792b16 Add presubmit check to prevent new deps on //clank
Upstream build files should only reference upstream targets.

Change-Id: I0df6e1603ed26cc1b464f40d85625ba0c43895ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2507869
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822294}
2020-10-29 18:57:59 +00:00
Weilun Shi
a487fad764 Remove CheckUmaHistogramChangesOnUpload
Remove CheckUmaHistogramChangesOnUpload. This check is only based on
simple regex match so it's not that reliable and might report a lot of
false positives.

The best way to do this is to merge all xmls and extract all histogram
names from it. It can be done in a way that similar to
https://source.chromium.org/chromium/chromium/src/+/master:PRESUBMIT.py;drc=015291ed0b8742662afb9431f176f033a0504a44;l=3610

However, merging xmls and extracting names is an expensive operation so
in order not to confuse users, we should remove this check for now and
we can re-implement a similar check once we have an efficient way to do
so.

Bug: 1138055
Change-Id: Iad81a9331d971b9260559b0e33fcced149c5334c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500269
Commit-Queue: Weilun Shi <sweilun@chromium.org>
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Weilun Shi <sweilun@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821513}
2020-10-28 00:10:34 +00:00
Andrew Grieve
5bb4cf7028 Fix .pydeps PRESUBMIT check not always triggering
The check was never updated to support --gn-paths.

Also adds missing --output arg to error messages when missing.

Bug: 1141255
Change-Id: I1e5fa5b6926247f3f00ae2687c72b894c666e2c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2491521
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819963}
2020-10-22 20:21:39 +00:00
Sky Malice
9e6d60307a Stop PRESUBMIT alarming on @VisibleForTesting().
Update special handing in ForTest PRESUBMIT checking to make sure common
Android annotation @VisibleForTesting is not flagged. This annotation
typically means something in production code has a more permissive
visibility setting (such as protected or public) so that a test can
access it. The ForTest PRESUBMIT check is not applicable to this
annotation. For more information about @VisibleForTesting annotation see
https://developer.android.com/reference/androidx/annotation/VisibleForTesting

Bug: 1138976
Change-Id: Ic345bfe8e5c283a8826e17c3209f6768a281151d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2476515
Commit-Queue: Sky Malice <skym@chromium.org>
Reviewed-by: who/bttk <bttk@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817717}
2020-10-15 22:49:55 +00:00
Rainhard Findling
1a3e71ed39 Don't require translation screenshots on description-only changes
* This is a follow-up to crrev.com/c/2328669 with further fine tuning
  from findings in https://crbug.com/1103844#c22.
* The current translation screenshot presubmit check flags modified
  messages:
  1) if the message does not yet have a screenshot, or
  2) if the message content itself changed.
* This CL changes the behavior to for modified messages check in this
  order:
  1) if the message content itself changed -> flag the message.
  2) if the message meaning changed and there is neither an existing
     screenshot nor is a new one added with the CL -> flag the message.
* Important cases to consider: messages that don't yet have a
  screenshot and for which only the message meaning attribute changed
  will require a screenshot, but messages for which only the message
  meaning changed and which already have a screenshot do not require a
  new screenshot. And messages of which only the description attribute
  changed simply never require new screenshots at all.

Bug: 1103844
Change-Id: I0318e685b2182a455dccfb0630ce768f5c990a65
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2412727
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Commit-Queue: Rainhard Findling <rainhard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808789}
2020-09-21 07:33:35 +00:00
Rainhard Findling
d8d0437b1f Require translation screenshot if none exists or message content changed
* The current translation screenshot presubmit check flags messages
  which got modified but for which no new translation screenshot
  got uploaded. It thereby also flags messages that got modified, but of
  which the message content itself did not change. This is the case, for
  example, if only the message description for translators got changed.
* This CL restricts the translation screenshot presubmit flagging
  modified messages. It will trigger 1) if the message did not have a
  screenshot at all so far, or 2) if the message content itself changed.
  Only changing the non-visible part of a message that already has a
  translation screenshot does not trigger it anymore.

Bug: 1103844
Change-Id: I254ce2a7267a7d2308b606b16d080c74188d582b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2328669
Commit-Queue: Rainhard Findling <rainhard@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797648}
2020-08-13 13:30:09 +00:00
Saagar Sanghavi
fceeaae5d5 Rewrote PRESUBMIT.py with new approach.
Re-design of the CL (crrev.com/c/2341362) to enable presubmit_support
to time/ResultDB wrap each individual lower-level check in PRESUBMIT.py.
The approach taken here is to have the PRESUBMIT_VERSION = 2.0.0 in here
so that presubmit_support is aware of the new version of PRESUBMIT.py,
then check input_api.version in CheckChangeOnCommit/Upload to ensure
that presubmit_support itself is the new version.

The associated changes to depot_tools (crrev.com/c/2349979) must be
landed in order for this to work.

Change-Id: I91d09337dd77a74540ac4a01017275bcaaa67cde
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2350234
Commit-Queue: Saagar Sanghavi <saagarsanghavi@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#797291}
2020-08-12 16:40:36 +00:00
Dirk Pranke
b316a14ad7 Revert "Rewrote PRESUBMIT.py"
This reverts commit 065782712e.

Reason for revert: Getting reports of the version check not working from various users; see crbug.com/1115140

Original change's description:
> Rewrote PRESUBMIT.py
> 
> Rewrote PRESUBMIT.py (and associated tests) to new format. Runs
> REQUIRE_PRESUBMIT_VERSION at the top so that depot_tools can be
> made aware of the change and can time/rdb wrap each of the Check...
> functions separately, while also ensuring that they have the new
> version of depot_tools.
> 
> Requires the newer version of presubmit_support.py in depot_tools,
> which is described in crrev.com/c/2341828
> 
> Change-Id: I102e8c75834aff1eccdf4a27ffe6f0953b76ee57
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341362
> Reviewed-by: Dirk Pranke <dpranke@google.com>
> Commit-Queue: Saagar Sanghavi <saagarsanghavi@google.com>
> Cr-Commit-Position: refs/heads/master@{#796595}

TBR=dpranke@google.com,estaab@chromium.org,saagarsanghavi@google.com

Change-Id: Ib3295d141e997fc6792c381fea10e8892204bcdb
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2349428
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#796867}
2020-08-11 17:12:57 +00:00
Saagar Sanghavi
065782712e Rewrote PRESUBMIT.py
Rewrote PRESUBMIT.py (and associated tests) to new format. Runs
REQUIRE_PRESUBMIT_VERSION at the top so that depot_tools can be
made aware of the change and can time/rdb wrap each of the Check...
functions separately, while also ensuring that they have the new
version of depot_tools.

Requires the newer version of presubmit_support.py in depot_tools,
which is described in crrev.com/c/2341828

Change-Id: I102e8c75834aff1eccdf4a27ffe6f0953b76ee57
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341362
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Saagar Sanghavi <saagarsanghavi@google.com>
Cr-Commit-Position: refs/heads/master@{#796595}
2020-08-10 22:53:50 +00:00
Avi Drissman
32967a9ec9 Engage the presubmit warning for OS_MACOSX
OS_MACOSX will still work for code already in the tree, but warn
to prevent new instances from landing.

Bug: 1105907
Change-Id: Ia811e352ab7ec688bad5e8e7b31868777dd75c10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2328330
Commit-Queue: Avi Drissman <avi@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#793021}
2020-07-30 04:10:32 +00:00
Avi Drissman
34594e90b3 Introduce OS_MAC
In the spirit of macOS Big Sur, which is labeled as macOS 11.0,
introduce OS_MAC and OS_APPLE. OS_MACOSX implicitly included OS_IOS,
which was confusing, so OS_APPLE is the new replacement for "macOS +
iOS" and OS_MAC is the new replacement for "just macOS, not iOS".

Bug: 1105907
Change-Id: I0f24ff5a74f07eaf2fe7b7fa17bdef7e82a514fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2299189
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791353}
2020-07-25 05:35:44 +00:00
Mustafa Emre Acer
d3ca8be8cf Rename is_accessibility attribute in UI strings
This is a follow up to https://crrev.com/c/2274667

This attribute was recently introduced so that developers wouldn't
get presubmit errors for accessibility labels that are not shown in the
UI. However, screen readers do actually display most accessibility
labels, so having screenshots for these strings are still useful. Still,
there is a small subset of accessibility labels that are never
displayed. This CL renames the existing attribute to make the intention
of the carveout clear.

Bug: 1094077
Change-Id: I4c171d29fea0aac611cb07759422bd5c25688017
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2285076
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786025}
2020-07-07 22:35:34 +00:00
Gyuyoung Kim
4952ba6aef Migrate StrongBinding to new Mojo type
This CL converts remaining StrongBinding's uses to
MakeSelfOwnedReceiver. Besides that this CL removes
all unnecessary strong_binding.h includes.

Additionally, PRESUMIT scripts start warning the use of
StrongBinding.

Bug: 955171
Change-Id: I3336fc31b7c7f390c00d4dfdd87dca404cce5e1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2281790
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#785614}
2020-07-07 07:33:44 +00:00