0
Commit Graph

1002608 Commits

Author SHA1 Message Date
ab4286029c [unseasoned-pdf] Add a unit test for FormTextFieldFocusChange().
Add a unit test for PdfViewWebPlugin::FormTextFieldFocusChange() to make
sure it updates the text input type in both the plugin and the frame
widget.

Bug: 1199558
Change-Id: Ic2d98ee18d0eb2097d815962f3b30839f3fb4568
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881308
Commit-Queue: Hui Yingst <nigi@chromium.org>
Reviewed-by: K. Moon <kmoon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881317}
2021-05-10 23:49:38 +00:00
107c03e9d5 GestureNav: Fix the flaky test again
Yet another attempt to deflake the test. Makes use of test util
to verify the activity goes background.

Bug: 1205167
Change-Id: I872e1ed3470e64da0d62a5cbd8db271c63b0fdd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2879645
Reviewed-by: Matt Jones <mdjones@chromium.org>
Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881316}
2021-05-10 23:48:51 +00:00
c92aaf93f7 Revert "[ios] Delays WebTest's BrowserState creation until SetUp()."
This reverts commit 83ca63522c.

Reason for revert: Broke internal waterfall, crbug.com/1207692

Original change's description:
> [ios] Delays WebTest's BrowserState creation until SetUp().
>
> Delaying BrowserState creation until SetUp() will allow subclasses to
> supply their own custom BrowserStates for use in tests. Previously, the
> WebTest constructor was responsible for setting up a TaskEnvironment, so
> it was not possible for a subclass to create a BrowserState before
> WebTest's constructor ran.
>
> Bug: None
> Change-Id: I95d1d8b508d58cc14c11ff81bf7aee10e61d4a4f
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2878697
> Commit-Queue: Rohit Rao <rohitrao@chromium.org>
> Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#881191}

Bug: None
Change-Id: I08783cb9cd0f9c3634234ae0a012cc3e1e423b85
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885650
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Javier Flores <javierrobles@chromium.org>
Auto-Submit: Javier Flores <javierrobles@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#881315}
2021-05-10 23:47:08 +00:00
0d8774ae81 Rewrite LocalStorageHelper browsertests to avoid legacy data format
These tests depended on the legacy localStorage data format (SQLite
databases for each origin), which blocks removal of the legacy migration
code. This rewrites the tests to populate localStorage with test data
without depending on the legacy format.

Also re-enables one of the tests, which was previously flaky, but is now
rewritten.

Bug: 1206834, 1028676
Change-Id: I7634854bbeaf2be99b2beb76652a2483b78dedb9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2880742
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Lily Chen <chlily@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881314}
2021-05-10 23:46:09 +00:00
35a0bf80de arc: Implement ANR metrics.
This reports ANR events. The main purpose of use it is the context of
ANR reduce project to utilize UMA functionality to track improvements
and conduct Finch experiments.
Android part: ag/14415327

BUG=b:187112142
TEST=Locally, modified framework timeouts to easy cause ANRs and confirm
     they appear in chrome://histograms

Change-Id: Ide6ae234923b4bd1bbed942a3a4065d71a0e8792
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2869972
Commit-Queue: Yury Khmel <khmel@chromium.org>
Reviewed-by: Jesse Doherty <jwd@chromium.org>
Reviewed-by: Yusuke Sato <yusukes@chromium.org>
Reviewed-by: Alan Ding <alanding@chromium.org>
Reviewed-by: Elijah Taylor <elijahtaylor@chromium.org>
Reviewed-by: Greg Levin <glevin@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881313}
2021-05-10 23:45:49 +00:00
fe90f985ad Retire ScopedObserver in /chrome/browser/apps/app_service.
ScopedObserver is being deprecated in favor of two new classes:
- base::ScopedObservation for observers that only ever observe
  a single source.
- base::ScopedMultiSourceObservation for observers that do or may
  observe more than a single source.

This CL was uploaded by git cl split.

R=dominickn@chromium.org

Bug: 1145565
Change-Id: I705bb782e343977e738fc2db1df599763be330b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2883687
Auto-Submit: Sigurður Ásgeirsson <siggi@chromium.org>
Commit-Queue: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881312}
2021-05-10 23:42:37 +00:00
7b4fca489e Add use counter enum entries for FLEDGE update API.
Bug: 1186444
Change-Id: Id883255c0f85ebebccade2dd5004e2e3d7c07adc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2880737
Commit-Queue: Caleb Raitto <caraitto@chromium.org>
Reviewed-by: Paul Jensen <pauljensen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881311}
2021-05-10 23:40:15 +00:00
5c6c7606d5 Roll DevTools Frontend from af7ba130f6fe to 9f27b41d945b (1 revision)
af7ba130f6..9f27b41d94

2021-05-10 guangyue.xu@microsoft.com fix two flaky devtools web test cases

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/devtools-frontend-chromium
Please CC devtools-waterfall-sheriff-onduty@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/master/autoroll/README.md

Bug: chromium:1046784
Tbr: devtools-waterfall-sheriff-onduty@grotations.appspotmail.com
Change-Id: Ib764ec41c479c31a0fbc864eeb23e7829712b3b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885363
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@{#881310}
2021-05-10 23:38:41 +00:00
d49c19131c Remove unneeded trace_event.h includes in headers.
Header files that do not use TRACE macros or base::trace_event code do
not need this include. In some cases, the base::trace_event classes can
be forward declared, so the include is also not necessary. Remove the
trace_event.h includes and fix the build by adding missing includes.

Bug: 242216
Change-Id: Iead36b8d2b22aed8eb7bfdcd7c33c4d9971ac440
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881471
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Owners-Override: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881309}
2021-05-10 23:35:12 +00:00
65c9dca85e bento: Fix multi display behavior of name nudges.
Currently if a user has multiple displays and clicks/taps the new desk
button, there is a DeskNameView that is created on each display for the
new desk. Additionally, all of these DeskNameViews request focus,
leading to unexpected behavior. What should happen is that the newly
created DeskNameView on the same DesksBarView as the button that was
clicked/tapped should be focused.

This CL fixes this bug by adding a field to the DesksBarView, which is
set when a new desk button is clicked. Only the DesksBarView with this
new field will have its newly created name view focused.

Test: added
Bug: 1206013
Change-Id: I63b7cb3594a5c6a63ec015e4b0d00ac1dcd740a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877734
Reviewed-by: Ahmed Fakhry <afakhry@chromium.org>
Commit-Queue: Jeremy Chinsen <chinsenj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881308}
2021-05-10 23:34:42 +00:00
91c136dd7d [Stylize] Extend NoteTemplate JNI Conversion Logic
Adding further conversion logic to handle the properties that were
added to the C++ NoteTemplate model class.

Bug: 1194168
Change-Id: I3bacaa3e6cc12f14a60c9055f64505ef608b6d99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877697
Commit-Queue: Sebastien Lalancette <seblalancette@chromium.org>
Reviewed-by: sebsg <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881307}
2021-05-10 23:34:03 +00:00
89600381fd CodeHealth: Remove use of DictionaryValue::empty in /chrome/browser/ash/arc/tracing
This change removes the use of DictionaryValue::empty()
and replaces with Value::DictEmpty()

This CL was uploaded by git cl split.

R=khmel@chromium.org

Bug: 1187020
Change-Id: I45b69fd6be749dd22b60c2c344a40f68aa0a2707
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2879232
Commit-Queue: Yury Khmel <khmel@chromium.org>
Auto-Submit: Fangzhen Song <songfangzhen@bytedance.com>
Reviewed-by: Yury Khmel <khmel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881306}
2021-05-10 23:33:31 +00:00
f8fe8c6e9f Roll SwiftShader from 37cb6a5d2de0 to 08762e3c6fc5 (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/37cb6a5d2de0..08762e3c6fc5

2021-05-10 srisser@google.com Make clang-format-all.sh git aware

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/swiftshader-chromium-autoroll
Please CC swiftshader-team+autoroll@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/master/autoroll/README.md

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_chromium_msan_rel_ng;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;luci.chromium.try:linux-swangle-try-x64;luci.chromium.try:win-swangle-try-x86
Bug: None
Tbr: swiftshader-team+autoroll@google.com
Change-Id: Iffee069e52d3997454022b48ca7c043143c1238a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885003
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@{#881305}
2021-05-10 23:32:56 +00:00
15d612d02a Toggle SecureDnsManager based on feature
SecureDnsManager only needs to be instantiated if the kDnsProxyEnableDOH
feature is enabled, otherwise it's just wasted cycles.

BUG=b:182240110
TEST=units pass

Change-Id: Ia7289a36dabac550ec4cb5cf53d5d57b73104fe2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881504
Commit-Queue: Garrick Evans <garrick@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881304}
2021-05-10 23:30:30 +00:00
c465f9251d Add more passing web tests for OOPR canvas
Reenable some tests that are now passing with OOPR canvas enabled.

Bug: 1081534
Change-Id: I2253761aaaf23150ef93e39a96bb8dc1b67e3dce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885320
Commit-Queue: Justin Novosad <junov@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881303}
2021-05-10 23:28:15 +00:00
b3272ad3e1 ime: Fix crash bug when shutting down.
When shutting down with a text field in focus, the IME will query the
ChromeKeyboardClient to check if the virtual keyboard is enabled or not.

Unfortunately, the virtual keyboard is already destroyed by then, so
the ChromeKeyboardClient will dereference a nullptr, causing a crash.

Fix this by adding a null check.

Bug: 1206849
Change-Id: Id35738d5630db73aacf117d9cabfc5272998c926
Fixed: 1206849
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2879785
Reviewed-by: James Cook <jamescook@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881302}
2021-05-10 23:19:12 +00:00
cc71cb5e65 Roll PDFium from 115cfacb0167 to 72fd656fee19 (14 revisions)
https://pdfium.googlesource.com/pdfium.git/+log/115cfacb0167..72fd656fee19

2021-05-10 thestig@chromium.org Refresh README.md:
2021-05-10 tsepez@chromium.org Replace some hex constants in cpdf_interactiveform.cpp
2021-05-10 tsepez@chromium.org Begin encapsulation of CFWL_ThemePart classes
2021-05-10 tsepez@chromium.org Encapsulate CFieldTree::Node::m_Root
2021-05-10 thestig@chromium.org Roll v8/ 64478f20c..9b3386186 (554 commits)
2021-05-10 thestig@chromium.org Use <iosfwd> in more headers.
2021-05-07 thestig@chromium.org Roll third_party/depot_tools/ da768751d..5009fd68a (86 commits; 11 trivial rolls)
2021-05-06 thestig@chromium.org Roll buildtools/third_party/libc++abi/trunk/ a136a3b8e..5f5152162 (5 commits)
2021-05-06 thestig@chromium.org Roll buildtools/ 5dbd89c9d..e72cd4587 (2 commits)
2021-05-06 thestig@chromium.org Roll third_party/zlib/ 09490503d..eb9ce8c99 (2 commits)
2021-05-06 thestig@chromium.org Roll third_party/freetype/src/ f9350be1e..82fd32d67 (43 commits)
2021-05-06 thestig@chromium.org Roll base/trace_event/common/ 7af6071ed..d5bb24e5d (2 commits)
2021-05-06 thestig@chromium.org Roll third_party/instrumented_libraries/ 6900bf4e2..084aee047 (1 commit)
2021-05-06 thestig@chromium.org Roll buildtools/third_party/libunwind/trunk/ 08f35c851..5844fc676 (1 commit)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/pdfium-autoroll
Please CC pdfium-deps-rolls@chromium.org 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/master/autoroll/README.md

Bug: None
Tbr: pdfium-deps-rolls@chromium.org
Change-Id: Ib21f3a2d0ad4e765f64af54ec5a6bb758c80a3ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885364
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@{#881301}
2021-05-10 23:16:03 +00:00
5288dd4ca4 Fix CompositeAfterPaint paint benchmark crash
Change-Id: I51ae90bfdab1252a1d30265d1e5818f74246e512
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2882476
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Auto-Submit: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881300}
2021-05-10 23:15:52 +00:00
3287e4b3bb Roll src/third_party/boringssl/src 354cd48f5..9b2cdb769
https://boringssl.googlesource.com/boringssl/+log/354cd48f51ea6c6d5c1b1d76ae0585107f8a868e..9b2cdb769ac420b0f98ff7ef5df61115bbddc3d8

The following commits have update notes:
  9f55d9728 Make X509_SIG and X509_CERT_AUX opaque.
  1264f0ce3 Correctly order PKCS#7 certificates and CRLs.
  a96f4dd38 Rename X509V*_VERSION constants.

Bug: none
Change-Id: I7b05575d93f2afddd2d8f58940f3392c82b55bec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885465
Auto-Submit: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Commit-Queue: David Benjamin <davidben@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881299}
2021-05-10 23:13:52 +00:00
85f7418795 [Toolbar] Remove SceneChangeObserver from ToolbarManager
This is meant to prevent the case where tab changes independently from
ActivityTabTabObserver related signals. When it does onSSLStateUpdate
can be called with a tab that is not set of LocationBarModel tripping
the assert.

This affects StartSurfaceTests

Bug: 1205642, 1108496
Change-Id: Ib4571033e139120ef8f266b417523672acbe69bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2872438
Reviewed-by: Brandon Wylie <wylieb@chromium.org>
Reviewed-by: Matt Jones <mdjones@chromium.org>
Commit-Queue: Filip Gorski <fgorski@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881298}
2021-05-10 23:11:34 +00:00
657d3ce7b0 Linux sandbox: fix logging in SandboxBPF::DisableIBSpec()
Some of the logging in SandboxBPF::DisableIBSpec() is causing
debug-build test failures because the sandbox test code expects
no output for many tests.

This CL removes an unnecessary LOG(INFO) and changes one to a VLOG(1).

Bug: 1171027, 1206746
Change-Id: I8e255805e7aa53033205a28231ee366e03069edf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2880845
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Matthew Denton <mpdenton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881297}
2021-05-10 23:11:25 +00:00
2dde4571c8 [CrOS Cellular] Fix <cellular-networks-list> RTL indent.
Screenshots:
https://screenshot.googleplex.com/6N39mb83cw3s4iF.png
https://screenshot.googleplex.com/7iJGNEWEHjRsNhk.png

Fixed: 1207640
Change-Id: Iadfdb13f7c2aed0d9bc27f1ad468bd1c133f6fbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885662
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Gordon Seto <gordonseto@google.com>
Cr-Commit-Position: refs/heads/master@{#881296}
2021-05-10 23:08:43 +00:00
2c03d13885 Remove unneeded headers from ui/views/view.h.
Then fix the build for files that were missing direct includes.

Change-Id: Ibaa0b10c718398b99b6dc00d9aafddc6ac5fdbaa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881319
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Tommy Steimel <steimel@chromium.org>
Reviewed-by: Ahmed Fakhry <afakhry@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881295}
2021-05-10 23:06:22 +00:00
6dc460eeb4 reland "DPWA: update file handlers on permission change"
This is a reland with a fix to declare the WebAppProviderFactory
to depend on HostContentSettingsMap so that the WebAppProvider system
is shutdown before HostContentSettingsMap.
Original CL description:
> Unregister file handlers when file handling permission is changed to BLOCK
> by the user, and re-register file handlers when the permission settings is
> changed to ASK/ALLOW. Make WebAppInstallFinalizer observe file handling
> permission changes and update app db state as well as OS state. Make
> both install and update task checks file handling permission during
> |WebAppInstallFinalizer::SetWebAppManifestFieldsAndWriteData|.
>
> Bug: 1194163
> Change-Id: Ia24030018243571b6ed020de205cf346742c0169
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2868925
> Commit-Queue: Phillis Tang <phillis@chromium.org>
> Reviewed-by: Darwin Huang <huangdarwin@chromium.org>
> Reviewed-by: Daniel Murphy <dmurph@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#880576}

Change-Id: I30cdc19e6d3327004e45df3b9372bc2708829e08
Bug: 1194163
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885422
Commit-Queue: Phillis Tang <phillis@chromium.org>
Commit-Queue: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881294}
2021-05-10 23:05:44 +00:00
ab9f86930c Add FLAG_IMMUTABLE to another media PendingIntent.
Bug: 1205544
Change-Id: I92598721aeaf1e44a5738a4000576454cbb5abf5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2876171
Reviewed-by: Tommy Steimel <steimel@chromium.org>
Commit-Queue: Frank Liberato <liberato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881293}
2021-05-10 23:02:44 +00:00
3ddeed541d [UMA] Mark FileBrowser.SuggestApps* as obsolete
These histograms, actions and associated enums are no longer emitted
after M90. Marking them as obsolete.

Bug: 1202825
Change-Id: I5c528de056fe7f75623ce148ecd9df61e09553b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881629
Reviewed-by: Brian White <bcwhite@chromium.org>
Reviewed-by: Stuart Langley <slangley@chromium.org>
Commit-Queue: Josh Simmons <simmonsjosh@google.com>
Cr-Commit-Position: refs/heads/master@{#881292}
2021-05-10 23:02:05 +00:00
12c5e9b91e [Code Health] Remove uses of Value::DeepCopy()
Uses have been replaced with Value::Clone(), wrapped with
base::Value::ToUniquePtrValue() when necessary.

Bug: 1187012
Change-Id: I1b52aa70f4f1e2a8e95dcd054db04b59f75cfad2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2873230
Commit-Queue: Austin Sullivan <asully@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881291}
2021-05-10 23:00:32 +00:00
94d3270374 Update V8 to version 9.2.183.
Summary of changes available at:
fbeda353..29957be0

Please follow these instructions for assigning/CC'ing issues:
https://v8.dev/docs/triage-issues

Please close rolling in case of a roll revert:
https://v8-roll.appspot.com/
This only works with a Google account.

CQ_INCLUDE_TRYBOTS=luci.chromium.try:linux-blink-rel
CQ_INCLUDE_TRYBOTS=luci.chromium.try:linux_optional_gpu_tests_rel
CQ_INCLUDE_TRYBOTS=luci.chromium.try:mac_optional_gpu_tests_rel
CQ_INCLUDE_TRYBOTS=luci.chromium.try:win_optional_gpu_tests_rel
CQ_INCLUDE_TRYBOTS=luci.chromium.try:android_optional_gpu_tests_rel

R=hablich@chromium.org,vahl@chromium.org,v8-waterfall-sheriff@grotations.appspotmail.com

Change-Id: Ia0dc797e51e08f5fece5d91c7387951a619db20f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885325
Bot-Commit: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#881290}
2021-05-10 22:59:21 +00:00
b8780eadd5 Fix performance.eventCounts() for touchstart, touchend and pointerevent for EventTiming..
Currently performance.eventCounts() is broken especially for pointerdown, touchstart.
There are two main reasons:
1. A touchstart can be dropped because of HitTest() for touch event. In this case, following pointerdown will not be created. On the
other hand, in touch event model only touch starts can set the target and after that the touch event always goes to that
target. So when touchstart is dropped, the following touchend will not be dispatched.

2. In pointer_event_manager, when there's no pointerevent listener, a pointerevent will not be dispatched.

This CL is trying to count all pointerevent and touchevents for EventTiming invoked by user interactions.

Bug: 1123967
Change-Id: I415dca8cebfc0b8d50b80010eb6673a14ec6f534
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2758031
Commit-Queue: Hongbo Song <hbsong@google.com>
Reviewed-by: Justin Novosad <junov@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881289}
2021-05-10 22:57:20 +00:00
d7111596b1 GPU Python 3: print and xrange
Makes a couple of Python 3 compatibility changes to everything under
//content/test/gpu/:

1. Adds the print_function import to every Python file, which enforces
   Python 3's use of print as a function instead of a statement.
2. Fixes found instances of the above.
3. Changes "xrange" to "range".

These changes are compatible with both Python 2 and 3, so there should
be no functional changes.

Bug: 1198237
Change-Id: I44e9fcdc87ef98ad8742cd9ac813c607f6814185
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885679
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881288}
2021-05-10 22:51:24 +00:00
3793724ef7 fixup! Standardize the way wl::Object's are created
This CL is a fixup of [1].

[1] https://crrev.com/c/2859650

R=nickdiego@igalia.com
BUG=NONE

Change-Id: I51958dbf21efd713f7a530fa092bbbd271bdb492
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2883680
Reviewed-by: Nick Yamane <nickdiego@igalia.com>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#881287}
2021-05-10 22:50:22 +00:00
d54e1bebfd ime: Add back code that was accidentally deleted.
https://crrev.com/c/2336381 accidentally deleted some code that causes
input to be recorded twice.

Bug: 1109604
Change-Id: I9253a338d52344d7318c3ad993ea595f84548e8e
Fixed: b/187658318
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2882781
Commit-Queue: John Palmer <jopalmer@chromium.org>
Auto-Submit: Darren Shen <shend@chromium.org>
Reviewed-by: John Palmer <jopalmer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881286}
2021-05-10 22:50:15 +00:00
27ab2dd1c8 Extend new-shortcut-mapping flag until M93
Bug: None
Test: None
Change-Id: I4d5b45738ea6395758c3d35f9a9fe69f27b4c6f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885318
Auto-Submit: Zentaro Kavanagh <zentaro@chromium.org>
Reviewed-by: Ahmed Fakhry <afakhry@chromium.org>
Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881285}
2021-05-10 22:46:16 +00:00
9e5935d45c Roll src-internal from 3e74dde49aa9 to 46d01468fc18 (1 revision)
3e74dde49a..46d01468fc

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 jeffreycohen@google.com,wjmaclean@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/master/autoroll/README.md

Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Bug: None
Tbr: jeffreycohen@google.com,wjmaclean@google.com
Change-Id: I7029d00bfc44821aa64a2f6b3d606c4206c8acd3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885621
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@{#881284}
2021-05-10 22:43:47 +00:00
39e798ffaa [WebFeed] Put scroll listener as a mediator/recyclerview item rather than a feed/stream item.
Bug: 1199607
Change-Id: I83f8612c9943d1809eb046406aa9f09cf41bdf62
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885661
Reviewed-by: Dan H <harringtond@chromium.org>
Commit-Queue: Cathy Li <chili@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881283}
2021-05-10 22:39:33 +00:00
ee7010b785 OS Settings: Hide cursor and hover effects for toggles that are disabled
Fixed: 1202096
Change-Id: Ib7788587a47fff703282f394687cdd9abed6e03b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2875852
Commit-Queue: John Lee <johntlee@chromium.org>
Reviewed-by: dpapad <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881282}
2021-05-10 22:39:25 +00:00
d0e31dfdd9 Connect AttributionIntent handling to LaunchIntentDispatcher
When the APP_TO_WEB_ATTRIBUTION is enabled, enables processing of
Attribution Intents through the LaunchIntentDispatcher.

Bug: 1198308
Change-Id: I34eefda73d7fdc50dbcfadf9046557f7de1531e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2873456
Reviewed-by: David Trainor <dtrainor@chromium.org>
Reviewed-by: Charlie Harrison <csharrison@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881281}
2021-05-10 22:38:28 +00:00
0c6c165bdf histograms: Add jorgelo@ to chromeos, cryptohome, login OWNERS.
These are the directories that I currently own histograms in.

I took the quiz three times and passed on attempt  with 96% score:
https://screenshot.googleplex.com/BHQxrWyFNsNctvc

BUG=None
TEST=None

Change-Id: I8bb54028f601e0ac7bf275134151c381c816ef53
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2882858
Auto-Submit: Jorge Lucangeli Obes <jorgelo@chromium.org>
Commit-Queue: Steven Holte <holte@chromium.org>
Reviewed-by: Steven Holte <holte@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881280}
2021-05-10 22:38:18 +00:00
f3b663f7f6 [CodeHealth] Clean up some TODOs for a bug that's fixed.
Bug: 859477
Change-Id: I75c28c85cfd50cd3edb376b019012ea907fabbe0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2867335
Reviewed-by: Dominic Battré <battre@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Weilun Shi <sweilun@chromium.org>
Commit-Queue: David Bertoni <dbertoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881279}
2021-05-10 22:37:24 +00:00
6b5ea7cbe5 [RBD] Allow FetchDiscountWorker to load all active carts.
Change-Id: I3408c16b55fb260ea2cbb3c24377f6a595ac4b7c
Bug: 1196024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2847842
Commit-Queue: Mei Liang <meiliang@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881278}
2021-05-10 22:37:12 +00:00
8b011064a8 Extend AppDrag and BackGesture histograms
AppDrag is still needed while Mohnstrudel is rolling out. Extend and
make all the histograms expire date consistent. Also extend and make
BackGesture related histograms expire date consistent.

Bug: 1200390, 1200389, 1200360
Change-Id: I0220f02a264c16cd41942a5f464f9febde2f3557
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881347
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Commit-Queue: Min Chen <minch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881277}
2021-05-10 22:32:51 +00:00
f1c75453fa [RBD] Add update discount API to CartService
This CL does the following:
  * Adds an API for CartService to update discounts for a particular
    cart.
  * Updates the discount proto.

Change-Id: I98c703a0d84c8d72cfdb00cda870b83b686e7a5e
Bug: 1196031
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2830453
Commit-Queue: Mei Liang <meiliang@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Reviewed-by: Yue Zhang <yuezhanggg@chromium.org>
Reviewed-by: Yusuf Ozuysal
Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881276}
2021-05-10 22:31:18 +00:00
0adeac3dfd [Sheriff] Disable failing WebXrArViewportScaleTest test
Bug: 1207613
Change-Id: Ib546327dd7458efe3ef95a87c0c0942d34f5ed2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885680
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Brandon Wylie <wylieb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881275}
2021-05-10 22:31:08 +00:00
30dd646d5d [CodeHealth] Remove uses of ListValue::begin()/end() in /chrome/browser/download.
This CL removes calls to these deprecated member functions. It also
converts to the newer "for" loop syntax when possible, along with
other minor cleanup.

This CL was uploaded by git cl split.

R=dtrainor@chromium.org

Bug: 1187107
Change-Id: I6701512e8d2ebe8876634e626386ee0218c380f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2877224
Auto-Submit: David Bertoni <dbertoni@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Commit-Queue: David Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881274}
2021-05-10 22:29:21 +00:00
e7908b7c44 Site Settings: Always show file handling and font access permissions.
File Handling and Font Access previously were only usable behind a flag,
and therefore their permissions were only viewable in site settings when
the flag was enabled.

Font access has now begun origin trials[1], and file handling is planned
to begin origin trials soon[2]. Remove checks that only expose these
permissions in site settings when relevant flags are active, and instead
always show these permissions.

[1]: https://crrev.com/c/2359470
[2]: https://crbug.com/1157254

Bug: 535764, 1204323
Change-Id: I026fe5b689da49c1a8ca2573cd4f32d4d9deabd5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2880900
Commit-Queue: Darwin Huang <huangdarwin@chromium.org>
Reviewed-by: dpapad <dpapad@chromium.org>
Reviewed-by: Theodore Olsauskas-Warren <sauski@google.com>
Cr-Commit-Position: refs/heads/master@{#881273}
2021-05-10 22:27:43 +00:00
e1039e49b7 [rts] Trigger RTS packager at midnight
Start the RTS packager 3h earlier, so that rolls are before the start
of the workday in MTV.

Bug: 1090668
Change-Id: Ie2ac69fd995e0d11eb8527c7a8378eb2c302685c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881348
Auto-Submit: Nodir Turakulov <nodir@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
Reviewed-by: Gregory Guterman <guterman@google.com>
Reviewed-by: Garrett Beaty <gbeaty@chromium.org>
Commit-Queue: Garrett Beaty <gbeaty@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881272}
2021-05-10 22:27:40 +00:00
fe36b238b8 [RBD] Add a worker for fetching discounts
This CL adds the worker for fetching discounts in the background. This
worker is designed to do background work after calling
FetchDiscountWorker#Start and continue until Chrome is finished. It will
post a delayed task to perform the background work after it finished a
task.

Change-Id: If06dec617d6b51d0d4d009c2f3ccc018f8530b7d
Bug: 1196024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2827399
Commit-Queue: Mei Liang <meiliang@chromium.org>
Reviewed-by: David Trainor <dtrainor@chromium.org>
Reviewed-by: Yue Zhang <yuezhanggg@chromium.org>
Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
Reviewed-by: Yusuf Ozuysal
Reviewed-by: Nicolas Ouellet-Payeur <nicolaso@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881271}
2021-05-10 22:25:45 +00:00
d00f80e58f Roll Skia from a3724294409a to 4fe43b3ad855 (2 revisions)
https://skia.googlesource.com/skia.git/+log/a3724294409a..4fe43b3ad855

2021-05-10 ethannicholas@google.com Added a comment explaining DSL Declare's signature
2021-05-10 johnstiles@google.com Add support for uint types in DSL C++ code generation.

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 robertphillips@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/master/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: None
Tbr: robertphillips@google.com
Change-Id: Ib2bc5528f71549dcd9c73af5925a535fe0b87519
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2885282
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@{#881270}
2021-05-10 22:21:58 +00:00
abda8a867f Retire ScopedObserver in /chrome/browser/metrics/oom.
ScopedObserver is being deprecated in favor of two new classes:
- base::ScopedObservation for observers that only ever observe
  a single source.
- base::ScopedMultiSourceObservation for observers that do or may
  observe more than a single source.

This CL was uploaded by git cl split.

R=csharrison@chromium.org

Bug: 1145565
Change-Id: Ica49fd1d2aee766cc216de1cc0c48b75607fa227
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2883882
Auto-Submit: Sigurður Ásgeirsson <siggi@chromium.org>
Reviewed-by: Charlie Harrison <csharrison@chromium.org>
Commit-Queue: Charlie Harrison <csharrison@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881269}
2021-05-10 22:19:35 +00:00
dc4f884da6 Delete unused STL includes from net/ headers.
Headers that do not contain "std::" do not need STL includes.

This CL is first mechanically generated as follows:

INCL="algorithm|array|list|map|memory|queue|set|string|unordered_map|unordered_set|utility|vector"
git ls-files net | grep '\.h$' | xargs grep -L std:: | \
    xargs grep -El "#include <($INCL)>$" > to_process.txt

INCL_ESCAPED="$(echo $INCL|sed 's/|/\\|/g')"
cat to_process.txt | xargs sed -i "/^#include <\($INCL_ESCAPED\)>$/d"
cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D'

Then also remove an unused <bitset> include, which is not in the list
above.

Bug: 1200833
Change-Id: I962f3a1222d727eba0c1eccfdfb6cc86124fa1a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2881261
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Maksim Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#881268}
2021-05-10 22:18:16 +00:00