0
Commit Graph

91013 Commits

Author SHA1 Message Date
Zoraiz Naeem
2b054d07cc [Rounded-Display] Updates multiple overlays logic for rounded-displays.
This CL updates the multiple overlay processor to handle candidates
with rounded-display mask textures.

Currently the overlay processor will reject the candidates with
rounded-display masks as these textures have no damage over consecutive
frames therefore it is less power efficient to promote these textures.
Candidates with rounded-display masks are given a special priority in
the system that promote them for correctness rather than efficient.

This CL also adds fallback strategies in case candidates with
rounded-display mask textures fail DRM page-flip test.

Bug: 1262970
Test: Covered by unittests
Change-Id: Ia99fec6932b2f639fc3c13b5df30d7d6d63fb5f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4285130
Reviewed-by: Peter McNeeley <petermcneeley@chromium.org>
Reviewed-by: Kevin Haslett <khaslett@chromium.org>
Commit-Queue: Zoraiz Naeem <zoraiznaeem@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1132281}
2023-04-19 01:35:13 +00:00
Hidehiko Abe
2259d6c622 Do not inject LocalState to UserManager after creation for testing
Instead, let tests pass the LocalState instance to its ctor.
By default BrowserProcess's LocalState is used for ChromeUserManager
and its subclasses.

BUG=b:278643115
TEST=Ran tryjob.

Change-Id: Idc742af199c41a33ae34ad25358d39081015743f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4441786
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132273}
2023-04-19 01:10:52 +00:00
Moe Ahmadi
5a86742274 [omnibox][ml] Properly invalidates WeakPtr to prevent model callback
Rather than storing a WeakPtr reference and setting it to nullptr,
calls WeakPtrFactory::InvalidateWeakPtrs() to invalidate all existing
weak pointers. In local tests, this seems to avoid the DCHECK where
the scoring model callback is called after the result has been updated.

Also moves refactors the logic to cancel pending requests to the model
and to invalidate the WeakPtr into a function and moves it closer to
places in which the AutocompleteResult is updated.

Also updates some comments.

Bug: 1405555, 1434477
Change-Id: Iaa70292210df37573daa6517f7ab9e6f83ca73a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4442946
Reviewed-by: Angela Yoeurng <yoangela@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1132270}
2023-04-19 01:06:47 +00:00
Jihad Hanna
b725ac9d59 Renamed manual_testing_profile_import* to manual_testing_import*
Bug: 1413177
Change-Id: I23aed1d30de96599f2d7672c5a8a2f615b8d85a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4401368
Reviewed-by: Florian Leimgruber <fleimgruber@google.com>
Commit-Queue: Jihad Hanna <jihadghanna@google.com>
Cr-Commit-Position: refs/heads/main@{#1132263}
2023-04-19 00:48:27 +00:00
Claudio DeSouza
aa62931874 Replace base::GUID uses with base::Uuid (61/N)
`base::GUID` has been renamed, and is set to be  removed. This CL is
part of a batch of changes replacing all uses of `base::GUID`, with
`base::Uuid`, and its associated counterparts.

Additionally, deprecated functions in `base/uuid.h` are also also having
their uses removed wherever they occur.

Changes for path: /components/dom_distiller

This CL was uploaded by git cl split.

R=nyquist@chromium.org

Bug: 1428566
Change-Id: Ib90dfc2cb9e660e7a34d976106337cefaeefba7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4429679
Commit-Queue: Tommy Nyquist <nyquist@chromium.org>
Auto-Submit: Claudio DeSouza <cdesouza@igalia.com>
Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132251}
2023-04-19 00:13:23 +00:00
Siyu An
48593b5508 [Metadata] Populate behavior signal in server request for metadata
This signal is populated to the UnmaskRequest if the suggestion selected
has metadata shown on it. Such behavior will be sent to server side
for analytics and logging purposes.

Bug: 1313616
Change-Id: Ie2763c89fd4446de7f6a27d9ebb80e740004375a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4400648
Reviewed-by: Christoph Schwering <schwering@google.com>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Siyu An <siyua@chromium.org>
Reviewed-by: Jared Saul <jsaul@google.com>
Cr-Commit-Position: refs/heads/main@{#1132246}
2023-04-18 23:52:15 +00:00
Brandon Wylie
c194d04db8 [bookmarks] Add improved bookmark row
The new UX specs diverge enough to the point where a new row needs to be
added. This row handles both the compact/visual case along with
supporting accessory views which will be used for each power. Added
an accessory view to support the existing price-track case.

Bug: 1431609
Change-Id: I1290f79cf920383c5bd6a4a9171a06d525501b05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4409714
Reviewed-by: Sky Malice <skym@chromium.org>
Commit-Queue: Brandon Wylie <wylieb@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1132241}
2023-04-18 23:41:31 +00:00
Saifuddin Hitawala
913ae95f4e Graphite: Move ScopedReadAccess::EndState logic inside SkiaRep
This change moves Ganesh specific Vulkan EndState logic for
ScopedReadAccess inside SkiaRepresentation.

Bug: 1430206
Change-Id: I1ca1f110d5df8004e63074abad14befc4a561fff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4433611
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132228}
2023-04-18 23:26:03 +00:00
Jihad Hanna
c4129dda5f Added logic for manual credit card import
Bug: 1413177
Change-Id: I6113134e2704c119f3528e1599d8f6051687a14f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4401107
Reviewed-by: Florian Leimgruber <fleimgruber@google.com>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Jihad Hanna <jihadghanna@google.com>
Cr-Commit-Position: refs/heads/main@{#1132222}
2023-04-18 23:20:47 +00:00
Xinghui Lu
ab3fb47be2 Add histogram to check if a chrome-extension:// URL can be redirected to a different scheme.
Bug: 1410939
Change-Id: I3e187ea63d09dbe293e2f76f7273226a99010df4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4439899
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Daniel Rubery <drubery@chromium.org>
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132221}
2023-04-18 23:19:48 +00:00
Siyu An
db2b651e2d [Metadata] Exclude C1 virtual card art image from metadata metrics logging
Previously we included C1 virtual card art image in the metadata metrics
logging, and included this in the experiment group during evaluating
the suggestion selection conversion rate. However, since this static
image is still not rich card art, we should exclude it.

After the change, the metadata metrics logging considers only product
name and art image sourced from direct issuer metadata integration.

Bug: 1313616, b/277602105
Change-Id: Ife84697a1c3fe54519834ed8e05a53e6fb9a72fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4420532
Reviewed-by: Vishwas Uppoor <vishwasuppoor@google.com>
Commit-Queue: Siyu An <siyua@chromium.org>
Reviewed-by: Vinny Persky <vinnypersky@google.com>
Reviewed-by: Christoph Schwering <schwering@google.com>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1132211}
2023-04-18 22:52:31 +00:00
Matthew Jones
ef501bde2b Revert "Update product info API check to be its own flag"
This reverts commit b70273ba79.

Reason for revert: Crashing non-en-US testers.

Original change's description:
> Update product info API check to be its own flag
>
> This patch separates enabling the product info api from the features
> using it. By default, the api is enabled in the US since we have at
> least one real feature enabled by default. New features will no longer
> need to modify the shopping service to ensure their feature is in the
> list allowed for the api to be enabled. The only changes as a result
> of this will need to be on the experiment config side where we need
> to specify the new flag.
>
> Bug: b:266449217
> Change-Id: I5c581d8924ea57211a2dbb246b959534c30e298e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4415676
> Reviewed-by: Yue Zhang <yuezhanggg@chromium.org>
> Commit-Queue: Matthew Jones <mdjones@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1129270}

Bug: b:266449217, 1434421
Change-Id: I3586d5951643de47195442dc2cedabea3c558072
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4443747
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Auto-Submit: Matthew Jones <mdjones@chromium.org>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Yue Zhang <yuezhanggg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132209}
2023-04-18 22:41:46 +00:00
Jeongwoo Park
b83fa56ff9 Update unzip to use newer storage API
This pull request updates the unzip function to use the newer
storage API instead of the filesystem API.

Bug: 1418808
Change-Id: Ie7e22ce4e837efe2a43cac73068ae6118200f210
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4393022
Reviewed-by: Ken Rockot <rockot@google.com>
Commit-Queue: Jeongwoo Park <skeksk91@gmail.com>
Reviewed-by: Sorin Jianu <sorin@chromium.org>
Reviewed-by: Austin Sullivan <asully@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132204}
2023-04-18 22:37:59 +00:00
kylechar
6a88f9d53e Unify last test context provider differences
Some changes to viz::TestInProcessContextProvider so it can handle
everything ui::InProcessContextProvider does.

1. Early return if BindToCurrentSequence() is called more than once.
2. Support GLES2Interface+RasterInterface using
   RasterImplementationGLES.
3. Don't duplicate GpuFeatureInfo.

Bug: 1292507
Change-Id: Ifa7dd761d480cd21b5294fda586498bbdd9aaae9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4443406
Reviewed-by: vikas soni <vikassoni@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: vikas soni <vikassoni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132196}
2023-04-18 22:24:22 +00:00
Nina Satragno
8d67dec344 [fido] Skip TLS check for InternalAuthenticator
Skip the WebAuthn TLS check for InternalAuthenticator. This fixes a bug
where the WebAuthn autofill authorization enrollment did not work.

Fixed: 1433416
Change-Id: If1da2a5ef6828f016f71afa79a421e7832f2319c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4436382
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Auto-Submit: Nina Satragno <nsatragno@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132187}
2023-04-18 22:10:44 +00:00
David Benjamin
ea985a206c Make base::StringPiece implicitly convert to/from std::string_view
With absl::string_view turned into std::string_view,
abseil_string_conversions.h is now misnamed. However, those conversions
themselves are only needed because Chromium has forked a fundamental C++
vocabulary type.

As an intermediate state, until we make base::StringPiece into
std::string_view itself, add implicit conversions from/to the standard
type. This simplifies boundaries between external code, where the safe
pattern is currently tedious and the unsafe pattern (decomposing into
ptr/len) is much shorter.

However, this is imperfect. You may still need std::string_view in
places. E.g. implementing std::string_view-based interfaces, APIs that
take or return pointers, or cases when multiple implicit conversions are
chained together.

To that end, this reshuffles PRESUBMITs and guidelines:

- In Chromium, absl::string_view is now always std::string_view.
  Whenever you would have said absl::string_view, say
  std::string_view instead.

- However, for now, base::StringPiece is still distinct from
  std::string_view and the guidelines still prefer base::StringPiece
  over it. So, when you need std::string_view to deal with an
  external API, use std::string_view. Otherwise, use
  base::StringPiece.

(This is the same as the status quo, except absl::string_view is
replaced with std::string_view, and using the more standard spelling
when needed for  3p APIs is spelled out more explicitly. In other
cases, our non-standard spelling remains the preference.)

Existing uses of absl::string_view are left alone, but as they're the
exact same type, references can be freely and incrementally converted
to std::string_view.

Having two vocabulary types is still costly as developers must keep
track of the two, but it's better than three.  The only way to truly
remove this cost is to merge base::StringPiece into std::string_view,
now that they are at parity in safety checks.  This CL leaves that
decision for later, though its author is strongly of the opinion that we
should do it. :-)

As part of this, this removes the existing uses of
abseil_string_conversions.h, and cleans up some conversions and base
dependencies in the to-be-extracted net/der and net/cert/pki that are
no longer necessary.

Bug: 691162, 1370553
Change-Id: I0629029c157819ce673598caeb0f106917244f6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4427593
Reviewed-by: Yuwei Huang <yuweih@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: David Benjamin <davidben@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132183}
2023-04-18 22:05:01 +00:00
Siyu An
09a2e217be [Metadata] Add "Once" metrics for form event logging
Those will be logged once per page load.

Bug: 1313616, b/277795741
Change-Id: Iffc3051f9d031582eed5f7edcfbb79e58835545f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4422523
Reviewed-by: Christoph Schwering <schwering@google.com>
Commit-Queue: Siyu An <siyua@chromium.org>
Reviewed-by: Jared Saul <jsaul@google.com>
Reviewed-by: Vishwas Uppoor <vishwasuppoor@google.com>
Cr-Commit-Position: refs/heads/main@{#1132156}
2023-04-18 21:18:07 +00:00
Angela Yoeurng
b9b4fef5f9 [omnibox][ml] Pass match url, check that they match in callback.
It's possible that callback tasks don't get cancelled when the
AC Result changes, which will result in re-scoring the wrong
matches when the callback runs.  This CL passes along the
match's destination_url at the time scoring is called, and then
checks to make sure the url at that index is still the same.
If the destination url doesn't match, the result has changed and
the entire set of model outputs are discarded.

Bug: 1405555, 1431981
Change-Id: I121be081cf67802204e31f8aa001b6fd1661450c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4437551
Reviewed-by: Moe Ahmadi <mahmadi@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Angela Yoeurng <yoangela@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132145}
2023-04-18 20:57:28 +00:00
Juan Mojica
c4e646c1c5 Add support for image search menu item and region search to open companion.
Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome,mac-chrome
Bug: b:272544811, b:278608017
Change-Id: I1cfc5ec0ec3fb3db4456a2a7750c7a44744d911e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4423952
Commit-Queue: Juan Mojica <juanmojica@google.com>
Reviewed-by: Ali Stanfield <stanfield@google.com>
Reviewed-by: Alex Gough <ajgo@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132132}
2023-04-18 20:41:55 +00:00
Ken Buchanan
63b4b616ba [WebAuthn] Fix CredMan GetAssertion bundle generation
https://crrev.com/1131474 landed yesterday to add clientDataJson to
CredMan requests, but it was not properly merged with
https://crrev.com/1129907 which landed earlier yesterday, causing
CredMan getAssertion requests to fail.

This fixes the problem and also adds the clientDataHash to conditional
requests sent to CredMan.

Bug: 1427843
Change-Id: Iee476916d01be829e6cf996d1ef9d1fd75f4bc6f
Low-Coverage-Reason: This is behind a flag, test infrastructure is in progress.
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4442086
Commit-Queue: Ken Buchanan <kenrb@chromium.org>
Auto-Submit: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Commit-Queue: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132117}
2023-04-18 20:16:07 +00:00
thefrog
7109e03466 Remove unused parameter for CacheRealTimeUrlVerdict method
The |url| parameter is not used, so this CL removes it and updates
consumers to avoid passing it in.

Change-Id: I3bc5ea6537d82d82f5bd8e3efe9e7584392a3b10
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4442131
Reviewed-by: Ali Juma <ajuma@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Xinghui Lu <xinghuilu@chromium.org>
Commit-Queue: thefrog <thefrog@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132116}
2023-04-18 20:15:42 +00:00
Daniel Rubery
8792e7af5c Add crash key for Safe Browsing database path
We're failing to create this directory sometimes. Adding a crash key
will distinguish whether we're creating the wrong directory or whether
we can't create the directory for some reason.

Bug: 1434333
Change-Id: I8110f2d480625658a248e12000df753ed8de7b15
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4443251
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Reviewed-by: thefrog <thefrog@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132114}
2023-04-18 20:14:34 +00:00
David Benjamin
a45657b18c Switch optional_length_bits to absl::optional
We no longer need to juggle two values. Also add a TODO to capture the
spec mismatch in the X25519 implementation.

Change-Id: I979e81e366133aa2f9ffa2f83ff64bc9dfc5e2f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4434369
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Auto-Submit: David Benjamin <davidben@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: David Benjamin <davidben@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132103}
2023-04-18 19:59:03 +00:00
Xinghui Lu
969d5240c2 [SBv5] Encode OHTTP key before adding it to pref
Otherwise we will hit the IsStringUTF8AllowingNoncharacters check in
base/values.cc.

Also update the key hosting endpoint.

Bug: 1407283
Change-Id: I8b1981340b103fabaca52870c941619c4db42c6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4441888
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Reviewed-by: thefrog <thefrog@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132097}
2023-04-18 19:49:57 +00:00
Matt Reichhoff
d283bbc165 [GARU] Show only measurement settings for restricted users
This is analogous to crrev.com/c/4415982, but for desktop. Like that CL,
this one sets the value of the boolean to false for now, with feature
parameter work coming.

Screenshot: https://screenshot.googleplex.com/8g7mQRZKWQPqdWo

Change-Id: Ie38c1c7be590ab97f69aa5fde14213470d464071
Bug: 1428506,b/277181269
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4435712
Reviewed-by: Theodore Olsauskas-Warren <sauski@google.com>
Commit-Queue: Matt Reichhoff <mreichhoff@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1132094}
2023-04-18 19:47:28 +00:00
Yiren Wang
9988ea02d7 CrOS GMC V2: Use Jelly colors for updated UI
Since Jelly will be enabled when we launch the updated UI, create a
media_message_center::MediaColorTheme to pass in Jelly color IDs instead
of using AshColorProvider. Color IDs will make sure colors adjust to
light/dark theme automatically.

When enabling media::kGlobalMediaControlsCrOSUpdatedUI to test the new
UI, we need to enable chromeos::features::kJelly or
chromeos::features::kJellyroll too. crbug/1432772 will create a flag to
enable all the flags.

Light theme UI: https://screenshot.googleplex.com/36FHMTyMyTqnRwK
Dark theme UI: https://screenshot.googleplex.com/9QRnVz5hwZNEPTr

Bug: 1432419
Change-Id: I2a80aae8a5b47701feb1f74f7ae5c250df7635b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4425888
Reviewed-by: Andre Le <leandre@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Yiren Wang <yrw@chromium.org>
Reviewed-by: Tommy Steimel <steimel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132088}
2023-04-18 19:41:10 +00:00
Tim Judkins
6c77f87d19 [Extensions] Rename DevTools availability policy enum value
This CL updates the policy::DeveloperToolsPolicyHandler::Availability
enum value of kDisallowedForForceInstalledExtensions to
kDisallowedForSensitiveExtensions to better reflect the changes in
crrev.com/c/4412168, which expanded this value to also include component
extensions with the management permission. It also updates some of the
test names that were referencing the old name and the name given to the
setting in the related yaml policy definition.

No behavior change is expected.

Bug: b/274599835
Change-Id: I0abeace145c6e94aee5ba3908e6bc129e3e032d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4437309
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Alexander Hendrich <hendrich@chromium.org>
Commit-Queue: Tim <tjudkins@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1132084}
2023-04-18 19:32:58 +00:00
manuk hovanesian
da181c4c0a Revert "[memories][omnibox] Replace rows description with URL."
This reverts commit d39ed6f26e.

Reason for revert: Decided this was not the desired behavior - at least
for now.

Original change's description:
> [memories][omnibox] Replace rows description with URL.
>
> Rows launched in m113.
>
> This CL changes their texts from:
>   `<query> - Resume your journey`
> to:
>   `<query> - chrome://history/journeys?q=<query>`
>
> Bug: 1327076
> Change-Id: I9920c8faef01611e9dc2abe9cf412bd8bbee9c51
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4415761
> Reviewed-by: Sophie Chang <sophiechang@chromium.org>
> Commit-Queue: Sophie Chang <sophiechang@chromium.org>
> Auto-Submit: manuk hovanesian <manukh@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1128849}

Bug: 1327076
Change-Id: I23abbf4b7c9e41ec38346842c60939adc321db7f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4443008
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1132079}
2023-04-18 19:23:00 +00:00
thefrog
ae96115fac Add command line switch to skip the high-confidence allowlist check
The new switch safe-browsing-skip-high-confidence-allowlist is added in
this CL for debugging purposes. When present, checks to the high-
confidence allowlist will return that the allowlist is not matched.

This currently applies only to the V4LocalDatabaseManager allowlist, not
the RemoteSafeBrowsingDatabaseManager allowlist.

Change-Id: I916cdb2c22ceb895d78440c8e1d9211e8e83e447
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4442366
Reviewed-by: Xinghui Lu <xinghuilu@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: thefrog <thefrog@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132070}
2023-04-18 19:10:57 +00:00
Tom Anderson
153865a15b KDE6 desktop integration
Bug: None
R=sky

Change-Id: I018472479f54a530184381230fc00c57601bcaeb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4424145
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Adam Rice <ricea@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132061}
2023-04-18 18:53:16 +00:00
Peter McNeeley
dd6f0e758d Send visual debugger buffers back in skia_renderer with gpu
This is a reimplmentation of a previous cl but this version uses a
scoped read instead of a scoped write. Thanks to khaslett for this
updated implementation.

Kevin's updated implemenation:
https://chromium-review.googlesource.com/c/experimental/chromium/src/+/3968502

Bug: 1423059
Change-Id: I10d35bef76063b6036f49440bccf394fe7b76686
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4358271
Reviewed-by: Kevin Haslett <khaslett@chromium.org>
Commit-Queue: Peter McNeeley <petermcneeley@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Kyle Charbonneau <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132054}
2023-04-18 18:38:56 +00:00
Adam Langley
565d3539c6 Fix typo and expand deprecation message for CECPQ2Enabled.
This message will be translated but the previous wording assumed that
the reader understood the details of what the policy was controlling.

Change-Id: I677011b28b478128a26f1a3d15520f95a2f6288b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4430415
Reviewed-by: Julian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Adam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132016}
2023-04-18 17:33:05 +00:00
Mike Dougherty
e3ed15e80c Remove web_frame_util usage in //components/translate
This util only supports the page content world which is less widely used
now than it was when the utility was created. Additionally, it can hide
this fact from the caller and lead to bugs where the expected frames are
not returned (because the associated features live in an isolated
world).

Bug: 1427327
Change-Id: I231b3f122aa92a350ee9d174eebabbcf8bc242bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4437732
Reviewed-by: David Roger <droger@chromium.org>
Auto-Submit: Mike Dougherty <michaeldo@chromium.org>
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1132008}
2023-04-18 17:13:23 +00:00
Maggie Chen
de2ef1ff17 Increase CALayer new limit with many videos to 512 when kCALayerNewLimit is enabled.
The default CALayer limit allowed for CoreAnimation with many videos is 300. Now increase the limit to 512 when the feature kCALayerNewLimit is enabled.

Bug: 1432498
Change-Id: Ia8bd31d589235a2845fc89ac585706b6943d83e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4434154
Commit-Queue: Maggie Chen <magchen@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Markus Handell <handellm@google.com>
Reviewed-by: ccameron chromium <ccameron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131999}
2023-04-18 17:05:30 +00:00
Hidehiko Abe
de0706548f Call OnUserToBeRemoved and OnUserRemoved for RemovedUserFromList.
This is the preparation to extract reporting user management from
ChromeUserManager, which is currently depending on
ChromeUserManager::OnUserRemoved.

BUG=b:267685577
TEST=Ran tryjob.

Change-Id: I2903fb8a7b55ab65c7dbf8aae574265715d6f10d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4439014
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131994}
2023-04-18 16:56:37 +00:00
Asami Doi
c225ce76f2 code health: remove PageLoad.Experimental.Bytes.{Total2, Network}.*
This CL removes expired histograms:
- PageLoad.Experimental.Bytes.Total2
- PageLoad.Experimental.Bytes.Total2.LoadType.ForwardBackNavigation
- PageLoad.Experimental.Bytes.Total2.LoadType.Reload
- PageLoad.Experimental.Bytes.Total2.LoadType.NewNavigation
- PageLoad.Experimental.Bytes.Network
- PageLoad.Experimental.Bytes.Network.LoadType.ForwardBackNavigation
- PageLoad.Experimental.Bytes.Network.LoadType.Reload
- PageLoad.Experimental.Bytes.Network.LoadType.NewNavigation
- PageLoad.Experimental.Bytes.NetworkIncludingHeaders

PageLoad.Experimental.Bytes.NetworkIncludingHeaders was used in
tools/perf/contrib/cluster_telemetry/ad_tagging_ct.py and it is also
removed by this CL. json files are generated by the following command:

$ tools/perf/generate_perf_sharding.py update-timing --filter-only

Bug: 976125, 1343448, 1357698, 1384561
Change-Id: I711e34fe78e8346946f3ba0e3882df9c64e49784
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4432195
Auto-Submit: Asami Doi <asamidoi@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Roger McFarlane <rogerm@chromium.org>
Commit-Queue: Asami Doi <asamidoi@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131992}
2023-04-18 16:54:44 +00:00
Florian Leimgruber
ce03e04889 Manual test import: Change verification status
Set the status of all imported fields to kObserved instead of
kUserVerified. See my comment in the bug description for the rationale.

Fixed: 1432827
Change-Id: I6227363a692006f801ab2429639f8d731b7efc55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4440887
Auto-Submit: Florian Leimgruber <fleimgruber@google.com>
Commit-Queue: Florian Leimgruber <fleimgruber@google.com>
Commit-Queue: Matthias Körber <koerber@google.com>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Matthias Körber <koerber@google.com>
Cr-Commit-Position: refs/heads/main@{#1131969}
2023-04-18 16:30:28 +00:00
Nan Lin
6a63aa64a5 Move Attribution-Reporting-Support header setting to network service
This is one of the first steps to move attribution reporting request
and response logic to network service. It also makes it easier to
enforce the properties that the header is set if and only if the
corresponding feature is enabled and when the
Attribution-Reporting-Eligible is also present.

The feature flag and the mojom type are moved to
//services/network/public to be used by //services/network, blink and
browser. We will investigate removing all knowledge of the OS support
value from the renderer in the future.

The OS support enum is added to the resource request types to be
populated to the network service layer.

We will likewise move setting the Attribution-Reporting-Eligible header
to the network service in a future CL.

Bug: 1375791, 1425083
Change-Id: I6d0dc6154230963b376477a74239115b64c6ffae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4426530
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Andrew Paseltiner <apaseltiner@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Reviewed-by: Garrett Tanzer <gtanzer@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: David Bokan <bokan@chromium.org>
Reviewed-by: Brendon Tiszka <tiszka@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Commit-Queue: Nan Lin <linnan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131961}
2023-04-18 16:25:13 +00:00
Tomasz Jurkiewicz
ab40efe704 Migrate kids external fetcher to components.
Bug: b:278682648
Change-Id: I7fd3c18c36a94170007d7026b68f1c5ce1baae1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4439697
Reviewed-by: Nohemi Fernandez <fernandex@chromium.org>
Auto-Submit: Tomek Jurkiewicz <tju@google.com>
Reviewed-by: Nicolas Ouellet-Payeur <nicolaso@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Nicolas Ouellet-Payeur <nicolaso@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131957}
2023-04-18 16:17:45 +00:00
David Roger
9741ea2912 [bookmarks] History service uses bookmark UUID instead of ID
To prepare for having multiple bookmark models, use the UUID (which is
unique across all models) rather than the ID (which is unique per model).

Bug: 1425458
Change-Id: Ib7b71915cd8b22e0a7b3f999dad512a81d4aede0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4401355
Reviewed-by: manuk hovanesian <manukh@chromium.org>
Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: David Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131954}
2023-04-18 16:10:19 +00:00
Tom Sepez
91b5f2e442 Drop pointers to locals before return from WaitForNextFlush()
Otherwise, the references will persist until the TestBundleClient is
destroyed as part of test destruction, leading to spurious dangling
pointer warnings.

Bug: 1401495
Change-Id: Iad1813bc4667eadc88e84c6764dd4c11ba6f6c43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4437501
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131951}
2023-04-18 16:02:42 +00:00
James Lee
514e2ef426 Non-functional tidy-ups to field trial low anonymity filtering
Bug: b/274900786
Change-Id: Icdf280e001687b689c608133eafdcb158eb78cfc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4432432
Auto-Submit: James Lee <ljjlee@google.com>
Reviewed-by: David Roger <droger@chromium.org>
Commit-Queue: James Lee <ljjlee@google.com>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1131934}
2023-04-18 15:33:33 +00:00
Andrew Grieve
948c4797cf Add versionCode to about:version
This is necessary to know which specific SKU of chrome you are running.

Bug: None
Change-Id: Ie44166d7bf28e39771ca663dafa236b98a2b27af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4429051
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: John Lee <johntlee@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1131932}
2023-04-18 15:30:57 +00:00
Salma Elmahallawy
92150f47ac [DataRetentionPolicies] Data Retention Policies Requirements Change
ClearBrowsingDataOnExitList and BrowsingDataLifetime currently require SyncDisabled to be set to allow applying them. This CL relaxes the condition to disable the sync types for the respective browsing data types that need to be cleared by policy if sync and browser sign in are not disabled by policy.

This will be the new flow for applying the data retention policy:
1- If the SyncDisabled or BrowserSignin policy is set as true, then there is no need to check anything after this point as this means that all sync types are disabled, and the old logic can be followed.
2- If SyncDisabled policy and BrowserSignin are not set or set as false, then we can set the policy normally and automatically disable the sync types we need.

This change will be extended to IdleTimeoutActions policy which requires sync to be disabled as well. Thus, a shared browsing_data_policies_utils file is added to share the code for this change.

Bug: b/272025211
Change-Id: Ic935f2f3ce54692c1809641b77831d2cfe4e3756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4351191
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Salma Elmahallawy <esalma@google.com>
Reviewed-by: Christian Dullweber <dullweber@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131925}
2023-04-18 15:20:04 +00:00
Gyuyoung Kim
7c547e8dc2 [iOS] Enable BrowserAutofillManagerTest
This CL enables BrowserAutofillManagerTest on iOS since
they're passing.

Bug: 1427365
Change-Id: I4203c5e1de605d4872a1af91959baf52449c4137
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4430278
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Reviewed-by: Dominic Battre <battre@chromium.org>
Reviewed-by: Ian Vollick <vollick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131906}
2023-04-18 14:56:53 +00:00
Jihad Hanna
5cab99c3c4 Added tests for manual_testing_profile_import
Bug: 1413177
Change-Id: Ib8fef8b18b81f37999b0cee0dbd2caae324917bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4437973
Commit-Queue: Jihad Hanna <jihadghanna@google.com>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Florian Leimgruber <fleimgruber@google.com>
Cr-Commit-Position: refs/heads/main@{#1131891}
2023-04-18 14:25:19 +00:00
Ben Mason
4b949483b0 Updating XTBs based on .GRDs from branch main
Change-Id: I0ff9e5b261adf32d05f37702d694ae943ace5fba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4439191
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Ben Mason <benmason@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1131883}
2023-04-18 14:13:19 +00:00
PKI Metadata Updates Bot
935615cac8 Automatic update from google3
Automatic update for 2023-04-18 UTC

Change-Id: I009b8b1dce71b4847fe0d9c37cf9d70a69ec996f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4440666
Bot-Commit: PKI Metadata Updates Bot <mdb.chrome-pki-metadata-release-jobs@google.com>
Commit-Queue: PKI Metadata Updates Bot <mdb.chrome-pki-metadata-release-jobs@google.com>
Cr-Commit-Position: refs/heads/main@{#1131882}
2023-04-18 14:12:12 +00:00
Arthur Sonzogni
d94385adea Remove raw_ptr in arguments and return value.
raw_ptr was meant to be used in member variables only.

Some developers are using them in return values and arguments. This
isn't really a problem, but not very useful.

In most cases, developers are copy-pasting nearby code, causing this
pattern to propagate further away. So it is better to stop this early.

**Hidden motivation**: I am playing with an idea about automatically
finding every pre-existing dangling pointers:
https://godbolt.org/z/o8adYnc7a
It almost compiles, but this causes declaration and implementation
signature to differ in those locations. If we could get rid of them
here, my life would be slightly easier.

Bug: 1430482
Change-Id: I566cc956bbbce77a7275c0d0eb9116b4c6fa558c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4433430
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Bartek Nowierski <bartekn@chromium.org>
Owners-Override: Bartek Nowierski <bartekn@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1131881}
2023-04-18 14:11:53 +00:00
Claudio DeSouza
44bc0dc2aa Replace base::GUID uses with base::Uuid (70/N)
`base::GUID` has been renamed, and is set to be  removed. This CL is
part of a batch of changes replacing all uses of `base::GUID`, with
`base::Uuid`, and its associated counterparts.

Additionally, deprecated functions in `base/uuid.h` are also also having
their uses removed wherever they occur.

Changes for path: /components/omnibox/browser

This CL was uploaded by git cl split.

R=yoangela@chromium.org

Bug: 1428566
Change-Id: Iabc5f242165f5f362f9dccc178ebf7a45c9553d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4429896
Auto-Submit: Claudio DeSouza <cdesouza@igalia.com>
Reviewed-by: Angela Yoeurng <yoangela@chromium.org>
Commit-Queue: Claudio DeSouza <cdesouza@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1131874}
2023-04-18 13:57:03 +00:00