0
Commit Graph

1029524 Commits

Author SHA1 Message Date
e043dd252d Migrate some uses of min/max to base::clamp
This is not a complete migration, but those instances for which min/max
were used in an obviously "clamp" way.

Bug: 1231569
Change-Id: Ib609d65139b0779eac2b987a5e08788816246eb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3043206
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Eugene Zemtsov <eugene@chromium.org>
Reviewed-by: Michael Spang <spang@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908233}
2021-08-04 00:08:48 +00:00
91a0c5762f Enable gn check for //ppapi/thunk:*
This CL disentangles two codependent targets (//ppapi/thunk and
//ppapi/shared_impl) by creating a few helper targets. Fortunately, I
did not have to resort to a circular dependency.

Running `gn check` revealed a number of disallowed header inclusions. I
disentangled the header inclusions as necessary. In some places it was
possible to just delete troublesome includes because they were not being
used, or they only needed a forward declaration.

Before:
    //ppapi/shared_impl
        //ppapi/thunk

Now:
    //ppapi/shared_impl
        //ppapi/thunk
            //ppapi/shared_impl:common
                //ppapi/thunk:headers
            //ppapi/shared_impl:headers

Change-Id: I28a8ac7daca1371106dc675c66da930dfe3b15cf
Fixed: 1158997
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3065823
Reviewed-by: Erik Staab <estaab@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908232}
2021-08-04 00:07:49 +00:00
8e9ac23921 Roll WebRTC from 49c9b4ec3748 to 18c0cc2bbdce (1 revision)
https://webrtc.googlesource.com/src.git/+log/49c9b4ec3748..18c0cc2bbdce

2021-08-03 sprang@webrtc.org Refactor PacketSequencer in preparation for deferred sequencing.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/webrtc-chromium-autoroll
Please CC webrtc-chromium-sheriffs-robots@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Tbr: webrtc-chromium-sheriffs-robots@google.com
Change-Id: I19f47be66fa13ae85639fdb8e397257b260446da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069708
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#908231}
2021-08-04 00:07:34 +00:00
58956a153f MPArch: Ensure that prerendering doesn't create a blink optimization guide inquirer
All uses of IsInMainFrame have converted to IsInPrimaryMainFrame
for MPArch. As one of ensuring that the conversion is correct,
this CL adds a test to ensure IsInPrimaryMainFrame use of
BlinkOptimizationGuideWebContentsObserver::ReadyToCommitNavigation
works correctly on prerendering via the added test.

Bug: 1218946
Change-Id: I741eacde22afcc9cd267dd2517795aeac97003d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3045638
Reviewed-by: Kevin McNee <mcnee@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#908230}
2021-08-04 00:04:14 +00:00
8842c76fa5 Add Grid and Group M5 to fieldtrial_testing_config
Change-Id: Ia9a555741a30b0533bf37944cde5a03ea9679b62
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069352
Auto-Submit: Mei Liang <meiliang@chromium.org>
Reviewed-by: Yue Zhang <yuezhanggg@chromium.org>
Commit-Queue: Yue Zhang <yuezhanggg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908229}
2021-08-04 00:03:13 +00:00
3566272b1b Some fixes for updater_tests_system.
This is work in progress to resolve crbug.com/1236238. In order to
pass the integration tests as system, more significant work for
the Windows service is needed:
* decouple the update and the update-internal services
* support SxS services

Bug: 1236238
Change-Id: I941d3a9382b2ce0247c90960e721fb4e8f936352
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069858
Reviewed-by: S. Ganesh <ganesh@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908228}
2021-08-04 00:02:23 +00:00
dfa60e93ef Roll src-internal from 121c7c854adf to 1097ffdceae6 (5 revisions)
121c7c854a..1097ffdcea

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://skia-autoroll.corp.goog/r/src-internal-chromium-autoroll
Please CC cuianthony@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Bug: chromium:1135718,chromium:1163797,chromium:1233053,chromium:1236147
Tbr: cuianthony@google.com
Change-Id: I758a548879f44b9ef157b2f4f519d8534c9ec6dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069739
Commit-Queue: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
Bot-Commit: chromium-internal-autoroll <chromium-internal-autoroll@skia-corp.google.com.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#908227}
2021-08-03 23:58:47 +00:00
7dbb9dc601 Disable overscroll when prefers-reduced-motion is set.
Make android overscroll dependent on whether animations are enabled.

Bug: 1232154,1232183
Change-Id: I0628c9633ea5418e02a4de193faeb32a58949a01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3046841
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Robert Flack <flackr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908226}
2021-08-03 23:58:03 +00:00
0667ccb1ec Request sheriff to approve an imported CL when necessary
The rubber-stamper can not approve a CL that changes .bat, .sh or .py
files. Request the sheriff on rotation to approve the CL in such case.
The sheriff will have one hour to respond.

Bug: 1221677
Change-Id: I4cd1be4f4c2a8afb42cc776b954e3da31fdffe05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069076
Reviewed-by: Rakib Hasan <rmhasan@google.com>
Commit-Queue: Weizhong Xia <weizhong@google.com>
Cr-Commit-Position: refs/heads/master@{#908225}
2021-08-03 23:53:20 +00:00
255de7f208 Ship preferCurrentTab by default
Intent-to-ship:
https://groups.google.com/a/chromium.org/g/blink-dev/c/YoefXLTQsw0

Bug: 1136942
Change-Id: Ie29db985ca46bdb91ec0e610bac8c2163ce09a5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3052499
Commit-Queue: Elad Alon <eladalon@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908224}
2021-08-03 23:51:14 +00:00
e36255a545 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/core/css
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I5769069dcee38f04a0776d2c771d846736111eac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3066001
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908223}
2021-08-03 23:49:35 +00:00
a0667d69d5 [DSH] fix country code to use more reliable source
Bug: 1234484
Change-Id: Iea6ab9a83497bf0ad2b1b77fdb801ff731ec24c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069383
Commit-Queue: Jeffrey Cohen <jeffreycohen@chromium.org>
Reviewed-by: Kristi Park <kristipark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908222}
2021-08-03 23:44:18 +00:00
a7e30f2c4c Roll Depot Tools from 248a70bd5dac to a992238bf0f3 (1 revision)
248a70bd5d..a992238bf0

2021-08-03 linxinan@google.com Add params to update_files method

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/depot-tools-chromium-autoroll
Please CC ajp@google.com,apolito@google.com,ehmaldonado@google.com,sokcevic@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: chromium:1207955
Tbr: ajp@google.com,apolito@google.com,ehmaldonado@google.com,sokcevic@google.com
Change-Id: I4e854812739ac7194081f18ee69bcfcc6033c512
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069879
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#908221}
2021-08-03 23:43:36 +00:00
14a6148d24 [css-flex] Fix indefiniteness for a nested image column item.
This is effectively a revert of:
https://chromium-review.googlesource.com/c/chromium/src/+/2878647

As was not web-compatible.

Bug: 1233330
Change-Id: Ifa617009c974a4a421eee002372cc862b29ac88d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3066458
Reviewed-by: David Grogan <dgrogan@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908220}
2021-08-03 23:41:48 +00:00
415e5e2642 Add PdfToEmfConverterBrowserTest for images.
Improve test coverage for CFX_PSRenderer::SetDIBits() and related
methods using PDFium's testing/resources/embedded_images.pdf.

Bug: 1066645
Change-Id: I53a3cbf2995ee69290f4ec391b3329c19a84fa21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3063990
Reviewed-by: Alan Screen <awscreen@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908219}
2021-08-03 23:40:48 +00:00
287688cbf3 scanning: Wire scan next page button
-Initiate a new scan when the user clicks 'Scan page 2'

-Ensure on the left side that the scan progress shows and on the right
 side it remains in multi-scan mode

video: https://drive.google.com/file/d/1YH_LoAz_KpiEUv-2_x8w0YXJXCP0vmlp/view?usp=sharing&resourcekey=0-jUZtfKHUuh3AMMq-VXlsVQ

Bug: 1210271
Change-Id: Ief8ddfdec5d87777f4564dfe00d6748d7d77a5ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3044220
Commit-Queue: Gavin Williams <gavinwill@chromium.org>
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908218}
2021-08-03 23:40:43 +00:00
8e5d05da71 Roll Fuchsia SDK from 6.20210803.2.1 to 6.20210803.3.1
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-sdk-chromium-autoroll
Please CC chrome-fuchsia-gardener@grotations.appspotmail.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chromium.try:fuchsia-arm64-cast;luci.chromium.try:fuchsia-deterministic-dbg;luci.chromium.try:fuchsia-x64-cast
Tbr: chrome-fuchsia-gardener@grotations.appspotmail.com
Disable-Retries: true
Change-Id: Ifc0231f200f80167a027d6ac0cca4be57b336a1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069740
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#908217}
2021-08-03 23:39:44 +00:00
37f2bab425 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/modules/accessibility
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I0fc7e45d6d58ec7cac905b9022facea6d8166ff1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067859
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Nektarios Paisios <nektar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908216}
2021-08-03 23:39:00 +00:00
9a98d31bf2 Roll Skia from addccaf9cfb6 to 9cd9d0f3de06 (11 revisions)
https://skia.googlesource.com/skia.git/+log/addccaf9cfb6..9cd9d0f3de06

2021-08-03 michaelludwig@google.com Fix nearly flat edge detection in GrTriangulator
2021-08-03 johnstiles@google.com Fix cases of variable shadowing in rasterization.
2021-08-03 recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com Roll recipe dependencies (trivial).
2021-08-03 michaelludwig@google.com Use SkClipOp::kFoo instead of kFoo_SkClipOp from SkClipOpPriv
2021-08-03 scroggo@google.com Update gn_to_bp_utils to support python3
2021-08-03 robertphillips@google.com Make v1/SurfaceDrawContext V1-only
2021-08-03 bsalomon@google.com Fix -Wdeprecated-copy warnings
2021-08-03 johnstiles@google.com Add test for Runtime Effects and narrowing conversions.
2021-08-03 johnstiles@google.com Fix cases of variable shadowing in src/core/.
2021-08-03 brianosman@google.com Revert "Enable the atlas path renderer for GrAAType::kCoverage"
2021-08-03 robertphillips@google.com Make Gr*ContextPriv class hierarchy parallel Gr*Context class hierarchy

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-autoroll
Please CC nifong@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux-blink-rel;luci.chromium.try:linux-chromeos-compile-dbg;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Cq-Do-Not-Cancel-Tryjobs: true
Bug: chromium:928984
Tbr: nifong@google.com
Change-Id: Ie855b1a389beb9757c560f4349ca451db908d750
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3066773
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#908215}
2021-08-03 23:38:25 +00:00
9dc05a9170 Update GPU Gold failure message
Updates the exception that gets raised when Gold returns a non-zero exit
code to be clearer and let the user know that it's likely just a case of
an image needing to be triaged.

Bug: 1230745
Change-Id: Id6c16ebdefe2485634f563ed56d68b2616627a61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069501
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908214}
2021-08-03 23:37:56 +00:00
862a132475 Add chrome://flags for full dynamic colors.
Bug: 1235804
Change-Id: I8b7c8100b0026b089e64a8fc302162a3d637adf9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069357
Commit-Queue: Sinan Sahin <sinansahin@google.com>
Auto-Submit: Sky Malice <skym@chromium.org>
Reviewed-by: Sinan Sahin <sinansahin@google.com>
Cr-Commit-Position: refs/heads/master@{#908213}
2021-08-03 23:36:59 +00:00
919ab2e5a3 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/core/layout/ng
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: Ib78f1a6416fb1693b42816d76827a0beb14d078a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067839
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908212}
2021-08-03 23:36:16 +00:00
332d449a26 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/core/editing
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I6e0e8e209092c84ef30d3e7377918806a7efe4fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067504
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908211}
2021-08-03 23:35:27 +00:00
ad023d2d40 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/core/animation
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I9665af14a632c47483a36fc5243e47cd1b631156
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3066000
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908210}
2021-08-03 23:34:27 +00:00
0dd829c661 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/modules/webaudio
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: Ia158edaf26f1297322c0deca5a9c479060ebc89c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3066004
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Hongchan Choi <hongchan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908209}
2021-08-03 23:33:52 +00:00
9e0b2aa627 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/modules/canvas
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I3d237bf1ef4196b7d1922ab5db241b291bcaa498
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067878
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908208}
2021-08-03 23:33:04 +00:00
df9ce09c31 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/modules/service_worker
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: Ia2245df6744ba108729b979d1cceccbebffae79c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3063926
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908207}
2021-08-03 23:32:21 +00:00
b1333d25a3 [GMNext] Fix NTP promo card width
Layout params for NTP promo is set to wrap content by accident.

Bug: 1232204, 1235260
Change-Id: Ib7314245310194cf5ef6d465770796a8b013188a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069193
Reviewed-by: Cathy Li <chili@chromium.org>
Reviewed-by: Sky Malice <skym@chromium.org>
Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908206}
2021-08-03 23:32:00 +00:00
2f06745487 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/modules/csspaint
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I5e6fdada325bf0406593bdaa9dbbb27ac8a2ef65
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067879
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908205}
2021-08-03 23:31:00 +00:00
602cc8273c [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/platform/blob
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I0a80cc216b581b8ae6a4f4c425b8613501d72d83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067880
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908204}
2021-08-03 23:30:20 +00:00
27bcc6718d Allow mojo's cpp to generate mojo consts that are enums
Before this change the following:-
```
import "path/for/enum.mojom"
const enum.mojom.Enum foo = enum.mojom.Enum.kWhatever
```

would fail with a LookupError in GetCppPodType when filling the
module-forward.h template.

With this change, enum consts are now output in the main module.h
and pull in the full imported mojom that defined the enum.

This use of const enums is already tested by
mojo/public/tools/mojom/const_unittest.py but was not used anywhere
in cpp-generating code.

Bug: 1210301,1011660
Change-Id: I428ab67264353ac5544c0a9ad35eb432bd5aeb54
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3046531
Commit-Queue: Alex Gough <ajgo@chromium.org>
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908203}
2021-08-03 23:29:22 +00:00
d49af77405 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/modules/peerconnection
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I4465a79ca091c05b32a18fb0ad3b050d1b99ceb4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067506
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Steve Anton <steveanton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908202}
2021-08-03 23:28:36 +00:00
e04ed5b6d3 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/platform/weborigin
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I0f592f2b48a70548c1e9488f6a32b4069fd99749
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067861
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908201}
2021-08-03 23:27:44 +00:00
e528b43c57 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/core/dom
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: If085b85aba8fda12904b6705b8859797882fa89b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3064942
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908200}
2021-08-03 23:26:54 +00:00
ab74269d7a [media-app] Wait for image load before testing annotation mode.
Currently when the test fails it emits spurious errors. Waiting will
prevent this and make test failures easier to diagnose.

Orthogonally, we should ensure annotation can be entered robustly from
this state, but that can't be fixed here. It only occurs because the
test is able to find and "click" the annotation button before load
completes.

Bug: b/195058773
Test: All/MediaAppIntegrationTest.LoadsInkForImageAnnotation/_Default
Change-Id: I2309fba9eed623eb57803c8beb1c18412ab66a0e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3066706
Reviewed-by: Patti <patricialor@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908199}
2021-08-03 23:26:40 +00:00
4d11320c46 MPArch: disable downloads in DownloadManagerImpl on prerendering
Check that a RenderFrameHost initiating a download is active before
continuing.

Bug: 1222075
Change-Id: I1904b68c09987fb5701ab4da6f62bdcd40309bab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2980711
Reviewed-by: Min Qin <qinmin@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#908198}
2021-08-03 23:25:41 +00:00
39920f9b0a [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/platform
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I1b570f05dd2b1636e7ea635b7f1851f3ce49bdc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067881
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908197}
2021-08-03 23:24:43 +00:00
1c37a1a020 [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/core/html/parser
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: Ifb0657d3ac55fd5eaf962b6148405cf5f99fb874
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3063925
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908196}
2021-08-03 23:24:00 +00:00
c06fd0bf06 [lacros][test] Make it easy to debug ash during tests.
This makes the lacros test_runner.py aware of a new environment
variable, ASH_WRAPPER. When in the environment, the test runner will
prepend the ash command with whatever is in the environment variable.

This is similar to BROWSER_WRAPPER, which allows for attaching to the
browser process during tests.

Change-Id: Ieb0cfe3c12668da3756d0e8e8abd487951bfde4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2995026
Commit-Queue: Jim Shargo <jshargo@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Reviewed-by: Sven Zheng <svenzheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908195}
2021-08-03 23:21:24 +00:00
7f126163c0 [Media][DesktopCapture] Add enterprise policy warning to capture picker
Show a warning on the screen capture picker when the choices displayed
may be limited by configured enterprise policies.

Bug: 1182221
Change-Id: I1e6b0fb86b2e365f5a04fc62faf0bf92135e1080
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3057253
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-by: Elad Alon <eladalon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908194}
2021-08-03 23:20:40 +00:00
8ac2f20c97 [WTF::HashMap Refactor] Check for DeprecatedAtOrEmptyValue in presubmit
Warn on upload for any occurences of DeprecatedAtOrEmptyValue. The regex
is not particularly refined, but it is just a warning and I hope to get
rid of it in the near future.

This is step 2 of the refactor plan. See https://crbug.com/1058527#c9.

Change-Id: I307826c1a5ee44ab179f38dddfa804a14d802fbe
Bug: 1058527
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067499
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908193}
2021-08-03 23:19:41 +00:00
cb2464b63f [WTF::HashMap Refactor] Use DeprecatedAtOrEmptyValue() in /third_party/blink/renderer/core/frame
This CL is a true behavior-preserving refactor. It will not affect
performance because HashMap<>::DeprecatedAtOrEmptyValue() has an
identical implementation to HashMap<>::at().

In the near future, we will change the definition of HashMap<>::at() to
CHECK that the map contains the given key.

All occurrences of DeprecatedAtOrEmptyValue will need to be cleaned up.
If the caller cannot know whether the map already contains the given
key, one possible workaround is to use HashMap<>::find() instead.


Bug: 1058527
Change-Id: I249f8ff3351525a0ef6dd16e8a665c1d899b6c51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067838
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Commit-Queue: Dan McArdle <dmcardle@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908192}
2021-08-03 23:18:54 +00:00
b810fc67df Use WeakPtr instead of raw pointers in //components/payments
This patch uses WeakPtr instead of raw pointers of
ContentPaymentRequestDelegate, PaymentRequestBaseDelegate
and PaymentRequestDelegate.

Bug: 1086284
Change-Id: I158a697fac45f2bb549cf1720e5855cd2a84b6a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3018987
Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908191}
2021-08-03 23:18:18 +00:00
5afec78435 [TabCapture] Apply SameOrigin Policy to UI and Navigations
If the "Same Origin" Enterprise Policy restriction is set, ensures that
the "Switch to Tab" buttons only appear on valid capture targets. When
a tab is navigated and the origin changes, the InfoBar is recreated if
the button should be added or removed.

Additionally, observes the currently captured tab to terminate a capture
if it is navigated away from the same origin as the capturer.

Bug: 1182221
Change-Id: I4ad5de77cdd37c77f8833f50c7d8548c4dac02e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3061825
Auto-Submit: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908190}
2021-08-03 23:17:49 +00:00
ab12c67cb8 Cookie Store: Clean up CookieStoreManager.
This CL performs the following cleanups to the
content::CookieStoreManager class.

1) Mark immutable members as const.
2) Add thread safety annotations for non-thread-safe members.
3) Add sequence checks to methods flagged by the compiler.
4) Replace DISALLOW_COPY_AND_ASSIGNMENT() with the modern equivalent.
5) Rename CreateService*() with BindReceiver(). We now prefer to use
   Service to refer to the modules in //**/services.

Change-Id: I163d926b55dc80df4bde5cca8b32b056afd7a9a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3064414
Commit-Queue: Victor Costan <pwnall@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Auto-Submit: Victor Costan <pwnall@chromium.org>
Reviewed-by: Ayu Ishii <ayui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908189}
2021-08-03 23:16:26 +00:00
22a48f046a [Clipboard API] Clipboard Custom Formats implementation Part 5.
In this patch a new web custom format map is introduced while reading
& writing custom format from/to the clipboard. This format is in JSON
type and contains the mapping of custom MIME type to web custom
clipboard format. It also adds a restriction as to how many web
custom formats can be added via pickling async clipboard APIs.
Currently the hard limit is 100 on all platforms.
This was a security feedback in https://chromium-review.googlesource.com/c/chromium/src/+/3002583/comments/75f23531_61662b80
Also this format map is passed via
`WritePortableAndPlatformRepresentations` method to write the custom
format mapping to the clipboard.

i2p: https://groups.google.com/a/chromium.org/g/blink-dev/c/Lo7WBM_v_LY/m/LncCKkXeAwAJ

Bug: 106449, 1217643

Change-Id: I252f9eb5e5c6da7a60baf84e51743eea3f196161
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3039323
Commit-Queue: Anupam Snigdha <snianu@microsoft.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Reviewed-by: Eric Seckler <eseckler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908188}
2021-08-03 23:15:49 +00:00
f43582955e [WTF::HashMap Refactor] Create WTF::HashMap::DeprecatedAtOrEmptyValue()
This is step 1 of the refactor plan. See https://crbug.com/1058527#c9.

Bug: 1058527
Change-Id: I6b1260aa0edb1087e470b208d63826441a0c0966
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067503
Commit-Queue: Kent Tamura <tkent@chromium.org>
Auto-Submit: Dan McArdle <dmcardle@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908187}
2021-08-03 23:13:21 +00:00
2c4c773e21 Replace erase(remove_if(...)) with base::EraseIf(...).
Change-Id: Ibf5307d5ff807e3403d6e01e6ea9878fe07cae2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3067681
Commit-Queue: Chris Fredrickson <cfredric@chromium.org>
Auto-Submit: Chris Fredrickson <cfredric@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Maksim Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908186}
2021-08-03 23:12:57 +00:00
8e40d35bdc [Switch Access] Setup Guide: Update flag expiry
Updates the flag expiry after the launch was delayed. Set to M97 because
M95 was skipped, and to leave 1 milestone as buffer.

AX-Relnotes: n/a.
Bug: none
Test: none
Change-Id: I9f2b00484665c0a3b41c73ea49d067085f57e906
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069641
Auto-Submit: Anastasia Helfinstein <anastasi@google.com>
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908185}
2021-08-03 23:11:52 +00:00
566907652d [CSN] Add contentDescription to the dismiss button
The CL also fixes a typo in about_flags.cc which caused a DCHECK to fail.

Bug: 1236101
Change-Id: I2df40574aeb9648120a9bc7a196d6e656c27d10f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3065424
Commit-Queue: Yashar Dabiran <yashard@chromium.org>
Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
Auto-Submit: Yashar Dabiran <yashard@chromium.org>
Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
Cr-Commit-Position: refs/heads/master@{#908184}
2021-08-03 23:10:34 +00:00