0
Commit Graph

898807 Commits

Author SHA1 Message Date
2d8d780297 Modernize base::Value usage in IPC message utils.
Prefer using value-based instead of unique_ptr-based APIs where it is
not too intrusive. Use the new representation to more efficiently
translate list and dictionary values (per the documented
recommendations). Replace CreateWithCopiedBuffer with construction from
a span.

base::PickleIterator was augmented with a span-of-bytes ReadData API, to
make this a little cleaner, since this is now preferred over a pair of a
const char* and length.

Bug: 646113
Change-Id: I6361bfffe65e2d84aa8d50390648bb7ac194f205
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241936
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777516}
2020-06-11 22:08:20 +00:00
d97168f56e [Chromecast] Handle null in WebContentsRegistry.getWebContents.
If a session ID is not in the map, we propagate the null value to the
caller, which already handles null WebContents.

Bug: b/158602213
Test: cast_shell_junit_tests
Change-Id: Ib8d4d6fcaea7cf7a3df833199a379afe342b3aee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238516
Reviewed-by: Simeon Anfinrud <sanfin@chromium.org>
Commit-Queue: Thoren Paulson <thoren@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777515}
2020-06-11 22:07:41 +00:00
b461ba8c07 ui: don't mangle URLs with --mangle-localized-strings
This debugging switch adds special padding to every localized string,
to make debugging localization layout and clipping issues easier.
Some localized strings shouldn't be mangled though because they aren't
actually prose strings but rather other localized data. This CL has
the mangling logic not mangle URLs.

Bug: 1093821
Change-Id: I50abab16467e7f92098fc766dfbd276bf9519cee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241500
Reviewed-by: Chris Palmer <palmer@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777514}
2020-06-11 22:05:21 +00:00
45d487339e Roll Skia from 88183900a5bd to 85aa42820e24 (4 revisions)
https://skia.googlesource.com/skia.git/+log/88183900a5bd..85aa42820e24

2020-06-11 robertphillips@google.com Move VkYcbcrSamplerHelper's context functionality into VkTestHelper
2020-06-11 mtklein@google.com require c++14 public headers
2020-06-11 bungeman@google.com Publicly depend on fontmgrs.
2020-06-11 herb@google.com simplify option flow

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 bungeman@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
Bug: None
Tbr: bungeman@google.com
Change-Id: Id68141259f8423c12ac77fa7d2677cf2975831ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2242152
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777513}
2020-06-11 22:04:10 +00:00
2aaf9ca8a2 Replace blink::Image by cc::PaintImage.
Dark mode image classifier needs PaintImage than Image for classifying
image content. Removing blink::Image for this helps make dark mode
module independent of blink code.

Bug: 1091095

Change-Id: I3e19fbebc2e73bb707f134dbde15ee0d15784f93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2182098
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Prashant Nevase <prashant.n@samsung.com>
Cr-Commit-Position: refs/heads/master@{#777512}
2020-06-11 21:58:47 +00:00
09fcef03e2 Set WebXrIncubations flag to never expire
Change-Id: I8366fb20612c38b3b0bfaa8c5b1c94353007695d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241991
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Auto-Submit: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777511}
2020-06-11 21:58:22 +00:00
8f06f5aa76 Scope floc computation to url visits with publicly routable IP
Bug: 1062736
Change-Id: I4a0bfc9bb7910d4fd85e2327ba5863d57af8b1f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2219011
Reviewed-by: Josh Karlin <jkarlin@chromium.org>
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777510}
2020-06-11 21:57:42 +00:00
c366d29562 Plumb extension host_id through the content layer.
Add a generic "stable ID" to WebLocalFrame. The embedder can set this
when creating an isolated world with WebIsolatedWorldInfo and retrieve
it with an accessor on WebLocalFrame.  Extensions set this to host_id.

Also exposes the human readable name which already exists in
WebLocalFrame through an accessor.

V8PerFrameMemoryDecorator will retrieve the stable ID and human readable
name to annotate the memory usage of non-main isolated worlds.

R=siggi,jochen

Bug: 1080672
Change-Id: I01bdc6a2d6fd404053a0990cad9e9855189e9584
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2231668
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Reviewed-by: Sigurður Ásgeirsson <siggi@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Auto-Submit: Joe Mason <joenotcharles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777509}
2020-06-11 21:55:12 +00:00
9f5bdac81c [Extensions] Add Cookies API tests for SW-based extensions.
This CL adds testing for Service Worked-based extensions through
parameterized test fixtures.

Bug: 1093066
Change-Id: I0131023f30328cbe541a88e7a7d7b122d21aac29
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240263
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Commit-Queue: David Bertoni <dbertoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777508}
2020-06-11 21:54:09 +00:00
0ebcc795a2 Add default browser promo dialogs
Show default browser promo dialogs on launch to encourage users
to set Chrome as their default browser.

Bug: 1090103
Change-Id: I9ebbcdb30dbe68b84035a0e324205219b5ccf267
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2228191
Commit-Queue: Lijin Shen <lazzzis@google.com>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Theresa  <twellington@chromium.org>
Reviewed-by: Pavel Yatsuk <pavely@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777507}
2020-06-11 21:53:22 +00:00
20a8611e24 base: updates FileEnumerator example so that it actually compiles
I like code I can copy and paste. As 'enum' is a reserved word the
example text doesn't actually compile.

BUG=none
TEST=doc only change

Change-Id: I69461343c652898515394edf0c49733f0b7e5580
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241462
Reviewed-by: kylechar <kylechar@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777506}
2020-06-11 21:52:18 +00:00
8747a280b1 Switch DirectComposition_Nonroot matching algo
Switches Pixel_DirectComposition_Nonroot off the permissive Sobel
algorithm and onto exact matching. The test is stable enough (only 3
produced images across all configurations) that inexact matching should
not be necessary.

TBR=kbr@chromium.org

Bug: 1078914
Change-Id: I99d93ed361c673ea3a10d582aab51221c5e98aa8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240897
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777505}
2020-06-11 21:52:13 +00:00
176124af15 Update header views in place
This is to fix the problem that RecyclerView may crash when removing
an inflated view and adding it back.

Bug: none
Change-Id: I5ebcee05c17afe73c32edbc4c41c54b41ea7c7bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240065
Reviewed-by: Dan H <harringtond@chromium.org>
Commit-Queue: Jian Li <jianli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777504}
2020-06-11 21:49:25 +00:00
83d14d883e Roll Dawn from ba3c6becdfc5 to c7778a27cbdf (5 revisions)
https://dawn.googlesource.com/dawn.git/+log/ba3c6becdfc5..c7778a27cbdf

2020-06-11 bryan.bernhart@intel.com Prevent size overflow for sub-allocation.
2020-06-11 cwallez@chromium.org Vulkan: handle Device extensions more programmatically
2020-06-11 yunchao.he@intel.com Vulkan: use one barrier to transit states for all subresources
2020-06-11 brandon1.jones@intel.com Add fuzzer for the d3d12 backend
2020-06-11 rharrison@chromium.org Roll third_party/tint/ af5df70c7..3f3483be1 (2 commits)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dawn-chromium-autoroll
Please CC cwallez@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:dawn-linux-x64-deps-rel;luci.chromium.try:dawn-mac-x64-deps-rel;luci.chromium.try:dawn-win10-x64-deps-rel;luci.chromium.try:dawn-win10-x86-deps-rel
Bug: None
Tbr: cwallez@google.com
Change-Id: I36977a33005014d9a1a2b6eb1997d9ae33d53fe2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241925
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777503}
2020-06-11 21:46:29 +00:00
40486603db Roll Chrome Mac PGO profile from chrome-mac-master-1591891084-7151d95cafc8260a78d7a5c5cf0667a9d38c88f7.profdata to chrome-mac-master-1591905602-d0788b41a1d1a9dcf0b5cbf83766b32a449eddf5.profdata
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/pgo-mac-chromium
Please CC jeffyoon@google.com,liaoyuke@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: chrome/try:mac-chrome
Tbr: jeffyoon@google.com,liaoyuke@google.com
Change-Id: I2a2d9912aceff89d43d1d5327f4cf683c1e2b1bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241929
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777502}
2020-06-11 21:43:34 +00:00
1856f6990b Import wpt@0eebcad2909f58215fd328d742f4b9df556f0102
Using wpt-import in Chromium 5477cd5d08.
With Chromium commits locally applied on WPT:
9c24e63c71 "Check for first frame in CreateImageBitmap"
a8a2808358 "[Security][Coop] Browsing context switch reporting WPT"
b2436c3bfe "Ensure cloning a template element into an inactive document does not crash."
027aefc6b5 "OPTION element: Update OPTION label even if it has invalid markup"
0776aa6ddc "Mark pointerevent_pointermove_in_pointerlock test non flaky"
d2ee98f482 "Move manual offscreen wpt tests to own folder"
458dc853b0 "WPT: Migrate content-visibility tests to wpt."
84f61c816c "Exclude non relevants reports from the COOP-opener-breakage tests."
e106756f1b "[COOP] Access reporting. Update the test."
b447a3ac5e "De-flake cross-domain-iframe.sub.html"


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
domenic@chromium.org, ricea@chromium.org:
  external/wpt/streams

NOAUTOREVERT=true
TBR=foolip@google.com

No-Export: true
Change-Id: I1c0f5cd901ada35f2f28ee06bde3ab8de9c60a4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240876
Reviewed-by: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777501}
2020-06-11 21:40:10 +00:00
d920551bc4 media/gpu/vaapi: stringifications for tests and logs
This CL uses the va/va_str.h functions vaProfileStr() and
vaEntrypointStr() for better stringifications of test messages
and logs. No new functionality intended, just touching logs.

Bug: b:158713599
Change-Id: I1094b40adf3ed887b078fe936aebf56b04466b4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241503
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Jao-ke Chin-Lee <jchinlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777500}
2020-06-11 21:39:54 +00:00
e9daf9e1db Only expand download item when status is 'deep scanned safe'.
The following change was made to keep from clipping off the "deep
scanned, safe" status label on download items:
358ef51f54

However, this change allowed the download item's preferred size to
expand in a number of cases where the status label became even
momentarily larger than the default size, resulting in the boundaries of
download items shifting during download on some platforms and for some
files (see associated bug).

This CL restricts the change in the preferred size of the download item
to only happen specifically in the "deep scanned, safe" state,
preventing visual jitter during download.

In the future, it would be good to rewrite the layout code for download
items entirely to use a modern declarative layout, which would allow us
to reason about these kinds of issues and make needed visual changes
much more efficiently.

Bug: 1093343
Change-Id: Ie2492c0fc15209b51db6bf6c3624501e2be388c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240591
Commit-Queue: Dana Fried <dfried@chromium.org>
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777499}
2020-06-11 21:34:17 +00:00
d5f588160c [cc/metrics] Fix detecting presentation failure.
Instead of looking at the timestamp to detect whether a frame
presentation failed or not, look at the flags.

BUG=1093875

Change-Id: I4938ad357236dc9e96fba99829fd201328a64552
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2237758
Auto-Submit: Sadrul Chowdhury <sadrul@chromium.org>
Reviewed-by: Behdad Bakhshinategh <behdadb@chromium.org>
Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777498}
2020-06-11 21:30:52 +00:00
fa82c5799e Roll ANGLE from b50541b2d6c4 to 37e6ede65519 (6 revisions)
b50541b2d6..37e6ede655

2020-06-11 jmadill@chromium.org Minor cleanup to PostSubBuffer sample.
2020-06-11 angle-autoroll@skia-public.iam.gserviceaccount.com Roll glslang from 68b2e15ee016 to b919bc889e1d (3 revisions)
2020-06-11 cclao@google.com Vulkan: Initialize stencil ops with DontCare for color attachments
2020-06-11 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-ValidationLayers from 8b92af3fd83f to 5fab7f82a548 (5 revisions)
2020-06-11 timvp@google.com Add android:exported to AndroidManifest.xml
2020-06-11 syoussefi@chromium.org Vulkan: Reduce ConvertVertex.comp variations

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/angle-chromium-autoroll
Please CC cnorthrop@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_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win-asan;luci.chromium.try:win_optional_gpu_tests_rel;luci.chromium.try:linux-swangle-try-x64;luci.chromium.try:win-swangle-try-x86
Bug: chromium:1084580
Tbr: cnorthrop@google.com
Test: Test: CQ
Change-Id: I3bd268522eae850655feed97b8e76af5be15c9d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241557
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777497}
2020-06-11 21:29:58 +00:00
32e104b608 Roll WebRTC from ac937d03b0de to 33c0c342f60b (3 revisions)
https://webrtc.googlesource.com/src.git/+log/ac937d03b0de..33c0c342f60b

2020-06-11 titovartem@webrtc.org Generalize NetworkQualityMetricsReporter to support multiple peers in test
2020-06-11 hbos@webrtc.org [Adaptation] Add ability to inject resources on the PeerConnection.
2020-06-11 xalep@google.com Add a way to force a frame to be sent from SurfaceTextureHelper

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/master/autoroll/README.md

Bug: None
Tbr: webrtc-chromium-sheriffs-robots@google.com
Change-Id: Ic562ba2f8efc55e474422520600dda462a06ec7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2242151
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777496}
2020-06-11 21:26:35 +00:00
8a3e6a2898 Rollback protobuf lite runtime to 3.0.1
As a temporary fix for android webview regression b/157318961 this cl
rolls back the protobuf lite runtime to 3.0.1 using the codegen plugin.

Binary-Size: This is temporary and there is not really much we could do.
Bug: 1093059, b/157318961
Change-Id: I2bbaf6d3b434221b667901423c4616e26a7550c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238872
Reviewed-by: Dan H <harringtond@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777495}
2020-06-11 21:24:18 +00:00
cfc199db2e Move media_type.mojom typemaps to gn file
This CL removes a few of the media .typemap files, moving them into the
BUILD.gn file. This will help with consistency for the upcoming
VideoFrameMetadata changes.

Bug: 1059389
Change-Id: Ib4461498282add853d1b957cb41a12ec46f43433
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2239903
Auto-Submit: Thomas Guilbert <tguilbert@chromium.org>
Commit-Queue: Emily Stark <estark@chromium.org>
Reviewed-by: Emily Stark <estark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777494}
2020-06-11 21:23:07 +00:00
cfdcb6f24a [WebView] Rename to DocumentStartJavaScript
Per Java style guide https://google.github.io/styleguide/javaguide.html#s5.3-camel-case,
Javascript is better to be JavaScript.

We will need to do a 3-way patching for the AndroidX boundary interface,
so adding the addDocumentStartJavaScript() first in this CL, we need to
remove the original addDocumentStartJavascript() after aosp/1329732
landed.

We also upgrade the feature version to avoiding old AndroidX calling
newer WebView or vice versa.

Bug: 918065
Test: Covered by existing tests
Change-Id: I1f5eee713d521ac5f480eee670f5f5be674de553
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240283
Reviewed-by: Richard Coles <torne@chromium.org>
Reviewed-by: Changwan Ryu <changwan@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Shimi Zhang <ctzsm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777493}
2020-06-11 21:22:06 +00:00
5bc2e02253 PDF Viewer: Add UI to download edited PDF
- Add action menu providing options to download the original or edited
  PDF
- Menu only is shown if there are edits and the "SaveEditedPDFForm"
  feature is enabled.

Bug: 1078543
Change-Id: I561175c7608b747c15acd03123aca66761c8157c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2213240
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: dpapad <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777492}
2020-06-11 21:22:02 +00:00
dfc1f2ff8a diagnost_bloat.py: Point to hosted tiger view
The local one requires non-trivial build steps for it to work.

Change-Id: I3e7a00f823f22fc280218c2b96c8eb17942319db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2242153
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777491}
2020-06-11 21:20:11 +00:00
5dff2414f4 Map search-alt-shift to select-to-home/end directliy
This looked working in native UI as textfield treat them as
"select next/previous word".( See the bug for more details)
Map directly to "select-to-home/end" shortcuts instead.

This also fixes key report issue, where the strict mode rejected
the repeated key.

Bug: 1093430

Change-Id: I50a9113f3e97f3bc68ac5737a7fa6fa168511eca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238782
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: Ahmed Fakhry <afakhry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777490}
2020-06-11 21:18:28 +00:00
d858e6e9b2 Strip ANGLE revision off driver version
Strips the revision that's at the end of some ANGLE driver versions, as
it changes frequently and can mess with inexact matching since each
revision is treated as a separate trace in Gold.

Also reports the driver vendor in the data uploaded to Gold.

Bug: 1078914
Change-Id: I745993d8e7318c991cac2625718d5fd24b277a79
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241996
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777489}
2020-06-11 21:13:19 +00:00
6872d7c8a0 Updating XTBs based on .GRDs from branch master
TBR=govind@chromium.org

Change-Id: I38e6743a741d56d0f0993e24c56e86c219a03c79
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2242038
Reviewed-by: Ben Mason <benmason@chromium.org>
Reviewed-by: Krishna Govind <govind@chromium.org>
Commit-Queue: Krishna Govind <govind@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777488}
2020-06-11 21:12:39 +00:00
2e8cef35a0 [AW] Fix linkage issue when webview_includes_weblayer = false
Fix linkage error when compiling trichrome and monochrome apks
with webview_includes_weblayer compile flag set to false.

BUG=1093328

Change-Id: Ie170892a9ee39537f2127cc08c493d80d9569091
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241971
Reviewed-by: Richard Coles <torne@chromium.org>
Commit-Queue: Tim Volodine <timvolodine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777487}
2020-06-11 21:08:55 +00:00
1791b0b1e1 Add support for generating JS protos
Adds support for generating JS protos so that
the Kaleidoscope UI can deserialize the protos
from the Google API.

The generated code needs the protobuf JS library
which depends on parts of the closure library so
we add that to third_party.

BUG=1087037

Change-Id: Iee388e02f0ffcc0d1108a7f816da9f88c01fa58b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218554
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Becca Hughes <beccahughes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777486}
2020-06-11 21:07:35 +00:00
5f243e7e91 DevTools: Calculate Grid row and column Positive number line positions
This CL adds the showPositiveNumbers param to the gridHighlightConfig
to allow the positions of grid labels for rows and columns to be
calculated and sent to the overlay to be displayed during grid
node highlights.

This CL has a corresponding frontend CL:
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2231320

Standard labels: https://i.imgur.com/kwk8RAx.png
Labels flipped due to low margin: https://i.imgur.com/AeeS5Nt.png

Follow up work:
additional parameter to allow for the calculation and display of
negative row/column line offsets

Bug: 1047356
Change-Id: Ib64f7d4eb65d43a7da612c83b727fbe19079ea3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2230922
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Manuel Rego <rego@igalia.com>
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#777485}
2020-06-11 21:06:22 +00:00
1bf87bd061 Don't show conversation starters if showing onboarding.
Bug: b:157689497
Change-Id: Ib69db89261ff4751d8722463060f21f24312f2e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240306
Commit-Queue: David Black <dmblack@google.com>
Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777484}
2020-06-11 21:05:37 +00:00
b5d01c0394 Remove unused FrameHostMsg_RunBeforeUnloadConfirm message
It was removed in crrev.com/cdf545cc630cd2c55daacb3797bca1201395aef9

BUG=1039695

Change-Id: I61c48272bd68a3b81145cdacf9c0a13b57d7cbcc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241939
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777483}
2020-06-11 21:05:01 +00:00
283bf170f9 Roll Depot Tools from 77463bb18852 to 44de5e3f654c (1 revision)
77463bb188..44de5e3f65

2020-06-11 lovisolo@google.com presubmit_canned_checks.py: Ignore long TypeScript imports.

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 agable@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: agable@chromium.org
Change-Id: If8a40f26d4c9846ff563ad9b36cd87ad85241722
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241924
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777482}
2020-06-11 21:03:00 +00:00
cf0d063ee2 dpwa: add last_launch_time to WebApp
This adds last_launch_time_ to WebApp and setup setter/getter for
the WebAppSyncBridge

Bug: 1077642
Change-Id: I2eb28b20b5f2162bdefda23895ef7b042876bf38
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2219400
Commit-Queue: Phillis Tang <phillis@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: Alexey Baskakov <loyso@chromium.org>
Reviewed-by: Eric Willigers <ericwilligers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777481}
2020-06-11 20:56:50 +00:00
89ff6e8bc4 Only pass support bitmap to native
gfx::CreateSkBitmapFromJavaBitmap only support ARGB_8888 and ALPHA_8,
So covert all the formats other than this two, then send to native.


Bug: 1086990
Change-Id: I140d778725c8faf747d078a5f1dd82bd19b14164
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240588
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Gang Wu <gangwu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777480}
2020-06-11 20:49:31 +00:00
a15dda6b8b Set compile targets for chromium.memory master in test specs.
Bug: 1091004
Change-Id: I930c792e961dad7d5e570d355dd64ee15f00151b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2229661
Reviewed-by: Stephen Martinis <martiniss@chromium.org>
Commit-Queue: Garrett Beaty <gbeaty@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777479}
2020-06-11 20:48:35 +00:00
fadcbabc69 Add closedRoots to GetInnerHTMLOptions dictionary
This adds the closedRoots option to the getInnerHTML() options bag,
which allows serialization of provided closed shadow roots. This
is described in the explainer at [1], but is not yet in the spec
PR at [2], but I'll be adding it very soon.

[1] https://github.com/mfreed7/declarative-shadow-dom/blob/master/README.md#closed-shadow-roots
[2] https://whatpr.org/dom/858.html#dictdef-getinnerhtmloptions

Bug: 1042130
Change-Id: I921127842e9af5657e51f2199a2838c431aafed8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2239761
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777478}
2020-06-11 20:48:06 +00:00
33aa999019 Roll Perfetto Trace Processor Linux from 3ea07c860154 to 25ab22e43971
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/perfetto-trace-processor-linux-chromium
Please CC perfetto-bugs@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

Tbr: perfetto-bugs@google.com
Change-Id: I8cf15b94780dccd89f6f363898265f2a4e92c876
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241460
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777477}
2020-06-11 20:39:49 +00:00
8b4d64682c Reland "Reporting the results only for initial run"
This is a reland of 0063a381fa

The issue with original change is fix and run_perf_tests() method is
simplified as the rerun argument is not needed as much.

Original change's description:
> Reporting the results only for initial run
>
> For reducing the time of representative perf test, we only rerun the failed stories
> and update the results of the initial run based on the reruns. If the
> failed stories pass in rerun, the output will be updated to report all
> tests as passing.
>
> The current bug in these tests is that it would report values before
> considering the rerun results. So even if the failed tests pass after
> rerun, the output is still reporting the failures. This would cause the
> return_code to be set as 1 (Failed/Interrupted) while the tests has
> already passed via rerun.
>
> Bug: chromium:1091743
> Change-Id: I9eef7250bc2dad649fef49cf9a5ccd8195190f80
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2232603
> Reviewed-by: John Chen <johnchen@chromium.org>
> Commit-Queue: Behdad Bakhshinategh <behdadb@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#775682}

Bug: chromium:1091743
Change-Id: Iceeeff232f4740d25dcc2799f6e329399e0101ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2239534
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Reviewed-by: John Chen <johnchen@chromium.org>
Commit-Queue: John Chen <johnchen@chromium.org>
Auto-Submit: Behdad Bakhshinategh <behdadb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777476}
2020-06-11 20:37:03 +00:00
635735195f Roll Catapult from 30fcc49adc0b to d46dd079207b (2 revisions)
https://chromium.googlesource.com/catapult.git/+log/30fcc49adc0b..d46dd079207b

2020-06-11 khokhlov@google.com Perfetto tracing agent: Add ftrace CPU scheduling details
2020-06-11 cbruni@chromium.org [wp_page_replay_go] Use go modules

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/catapult-autoroll
Please CC sadrul@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:chromeos-kevin-rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Bug: chromium:1032253,chromium:839068
Tbr: sadrul@google.com
Change-Id: I80925967d7e56e0b4a66bab24fee680f9581a56f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241556
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777475}
2020-06-11 20:34:58 +00:00
49ccca7e98 [webui][ntp] Add voice search search and link keyboard shortcuts
Adds support to submit a query by pressing <ENTER> or <SPACE>.

We accomplish this by installing a voice search overlay wide keydown
listener to process this keyboard shortcut. Unfortunately, the same
keyboard shortcut also triggers the close button, which was the first
element focused upon opening the overlay before this CL. To submit a
query instead of closing the dialog by default, this CL adds a hidden
focusable div that captures the focus upon opening the dialog. This CL
also turns the close button into a cr-icon-button, which makes the UI
more consistent and makes the button swallow keydown events (that way we
don't both submit a query and close the overlay with <Enter> and
<SPACE>).

+ Add <SPACE> keyboard shortcut to trigger links.

+ Fix bug where any keyboard shortcut other than <CTRL> + <SHIFT> +
  <.> closes the voice search overlay.

Fixed: 1088482
Change-Id: I0c7c40d88503a3ae0d7343a077f8b086968e470b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238781
Reviewed-by: Esmael Elmoslimany <aee@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777474}
2020-06-11 20:34:02 +00:00
78c4483104 Use LogStoreForTest instead of the protected log_store() in test
Removed unused log_manager() function in MetricsService class and use
LogStoreForTest instead of the protected log_store() in the
MetricsServiceTest.

Bug: 1034679
Change-Id: Ib5b3bd252fc867f0602a790d19bdec28103941be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238343
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Commit-Queue: Weilun Shi <sweilun@chromium.org>
Auto-Submit: Weilun Shi <sweilun@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777473}
2020-06-11 20:32:32 +00:00
583dc4d29b WebInstall: Add cpp method to get installed apps on Android.
Change-Id: I61bd62d14c82c388915f712d7309f0b4f99bc715
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238855
Commit-Queue: Jarryd Goodman <jarrydg@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777472}
2020-06-11 20:31:34 +00:00
31f2a2ea08 WebUI: Remove compress="gzip", where not needed, part 3.
compress="gzip" is (as of r761031) the default behavior for
HTML/CSS/JS/SVG files, and therefore there is no need to
explicitly specify it.

In this CL updating src/content/.

Bug: 1068407
Change-Id: Ie01052feb892d9a72507a528f7a324270b5a44bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240107
Reviewed-by: Henrik Boström <hbos@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: dpapad <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777471}
2020-06-11 20:28:48 +00:00
035401092e mb: Remove implied CIPD packages attached to test tasks.
All tests should now be running in pools with task templates that handle
this automatically. So there's no need for mb to do any of this itself.

Bug: 812428
Change-Id: Idb210a6abe942415dff5a39402cce485f9a17373
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241180
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Reviewed-by: Stephen Martinis <martiniss@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777470}
2020-06-11 20:26:28 +00:00
2b31929067 Roll Perfetto from 25ab22e43971 to 526424e2cc47 (2 revisions)
25ab22e439..526424e2cc

2020-06-11 oksamyt@google.com Merge "[trace processor] Add WebView CPU usage metric"
2020-06-11 lalitm@google.com tp: rename _annotations suffix to _event

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/perfetto-chromium-autoroll
Please CC perfetto-bugs@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:linux-perfetto-rel
Bug: None
Tbr: perfetto-bugs@google.com
Change-Id: Ib44708a0da5e9381e0c28b1521a80c6a6166a164
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241920
Reviewed-by: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: chromium-autoroll <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#777469}
2020-06-11 20:26:11 +00:00
5b7164a6f8 [IPC Fuzzer] Add FuzzTraits
Add media::cast::FrameId, which handles the following messages:
CastMsg_RtcpCastMessage, CastMsg_RawEvents, CastHostMsg_InsertFrame,
CastHostMsg_CancelSendingFrames, CastHostMsg_ResendFrameForKickstart,
CastHostMsg_AddCastFeedback.

Add media::OverlayInfo, which handles the following message:
AcceleratedVideoDecoderMsg_SetOverlayInfo.

Add media::VideoPixelFormat, which handles the following message:
AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers.

Add blink::WebDeviceEmulationParams::ScreenPosition, which handles the
following message:
WidgetMsg_EnableDeviceEmulation.

Add util::StrongAlias<extensions::ActivationSequenceTag, int>, which
handles the following messages:
ExtensionHostMsg_DidStartServiceWorkerContext,
ExtensionHostMsg_DidStopServiceWorkerContext.

Add base::UnsafeSharedMemoryRegion, which handles the following message:
GpuCommandBufferMsg_RegisterTransferBuffer.

Change-Id: I2a36ab93185effc7090f53705d261e86a7090b30
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2237990
Commit-Queue: Martin Barbella <mbarbella@chromium.org>
Reviewed-by: Martin Barbella <mbarbella@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777468}
2020-06-11 20:24:56 +00:00
ceebf65973 Test synchronization between WA API and compositor.
Previously, we had a regression where changes to the state of an
animation were not always picked up by the compositor. Some WPT
tests were written to verify that the compositor picks up the changes;
however, these tests are prone to flaking due to the need  to take a
screenshot while the animation is running to verify the behavior. This
patch does not address the flakiness of the ref tests, but ensures
proper unit test coverage in the event that the ref tests get disabled.
Followup patches will address flakiness in the WPT tests.

Bug: 1093812

Change-Id: Iab5c6853e86f0b86cf554b803bbb6c3ab47725c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2232800
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Reviewed-by: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777467}
2020-06-11 20:24:26 +00:00