0
Commit Graph

957 Commits

Author SHA1 Message Date
Jun Zou
17ed96b29d [Omnibox][ML] Add elapsed time in days signals for scoring.
Bug: b/287323548
Change-Id: I91a3df1e321df98bc1ebc9feb5eb57ee55c1c86c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4616948
Reviewed-by: Moe Ahmadi <mahmadi@chromium.org>
Commit-Queue: Jun Zou <junzou@chromium.org>
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1159008}
2023-06-16 19:21:05 +00:00
Yao Xiao
d17124af94 [Topics] Send the taxonomy_version via PageTopicsModelMetadata
This makes it possible for the Annotator to only use a model compatible
with the Finch configured taxonomy (or return error if it cannot find
one), rather than potentially being inconsistent.

Bug: 1310951
Change-Id: I52c8bb17f3d2968ee8b4006264009192de02c588
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4615000
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1158477}
2023-06-15 22:39:37 +00:00
Robert Ogden
39144dce89 Generalize the Model Execution Watchdog
Instead of relying on a specific method on a specific class, use a
OnceClosure instead to be more generic and in order to support different
task libraries.

Also has the benefit of no longer being templated so moves the impl to
its own cc file.

Bug: b/283522287
Change-Id: I6b3faa470b06330ac985a57d256a4dbd277e81ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4615354
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1157836}
2023-06-14 22:20:33 +00:00
Seung Jae Lim
b9f93ef992 Implementation of OptimizationGuide service for Client Side Phishing Image Embedding model
Bug: 1431182
Change-Id: I0eb2dc12debaf0926d693587dff7b997c25bf978
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4562339
Reviewed-by: Daniel Rubery <drubery@chromium.org>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Seung Jae Lim <andysjlim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1156701}
2023-06-13 04:53:42 +00:00
Sana Akbani
caef3a2ee0 Create Text Embedding Model Handler & Executor
Bug: b/284242171, b/285372608
Change-Id: I04596994a46f8f80737727e7286c2015a0bd6bc8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4576815
Commit-Queue: Sana Akbani <sanaakbani@google.com>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Reviewed-by: Jun Zou <junzou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1153949}
2023-06-06 18:12:42 +00:00
Paul Semel
d40aad1899 DanglingPtr: mark leaked raw_ptr with LeakedDanglingUntriaged [1/N]
Those leaked raw_ptr were found in a previous CL (crrev.com/c/4501235/)
but the new tag was just introduced.

Bug: 1425095
Change-Id: Iac17934dca6714c202202794e3502f1b0d2aa79c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4580217
Owners-Override: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Paul Semel <paulsemel@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1153926}
2023-06-06 17:39:30 +00:00
Tom Sepez
910039cc1b Make SimpleTestClock a test-class member of HintsFetcherTest
Avoid a spurious dangling ptr warning about an out-of-scope local by
ensuring that the SimpleTestClock, when used, outlives the HintsFetcher
which has an unowned reference back to it.

Bug: 1401495
Change-Id: I65e1193411bb53a2932cc2eea5218fa05e93cf8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4581155
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1152548}
2023-06-02 15:29:35 +00:00
Pierre St Juste
aacb233b2e Adding keyed service for model fetching.
Update based on review feedback.

Bug: 277769894
Change-Id: Ief8435affb9d8134990005bd514939afe1aab171
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4577818
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Commit-Queue: Pierre St Juste <pstjuste@google.com>
Cr-Commit-Position: refs/heads/main@{#1152191}
2023-06-01 22:41:44 +00:00
Arthur Sonzogni
e98d214c48 DanglingPointer: annotate for unittests base+linux [1/N]
The DanglingPointerDetector is configured only when the test enters the
ContentMain function. See https://crbug.com/1400059

I would like to configure it no matter the kind of test. For this to
happen, we need to annotate every pre-existing dangling pointers.

This patch annotates the ones you can find by running targets depending
on the GoogleTest library.

Statistic:

This adds 1776 new DanglingUntriaged. Among them:
- 1288 are in unittests.
- 488 are in implementation.

To produce those numbers, I used the command:
```bash
git diff annotate-linux origin/main -- "*test*" | grep "DanglingUntriaged" | wc -l
```

This patch has been generated by:

1. Apply the "auto-annotator" patch:
   https://chromium-review.googlesource.com/c/chromium/src/+/4474553

2. Compile the compiler again:
   ```bash
   ./tools/clang/scripts/build.py
   ```

3. List and run all the targets. You can use a bash script like:
   https://docs.google.com/document/d/1AMMERcqy0eafFWopUCHYsIKIKEp3J8DFxqW9UIbzIHo

4. Concatenate output, filter by "Found dangling ptr", sort, remove
   duplicate.

5. Apply the rewriter script from:
   https://github.com/ArthurSonzogni/chrome-dangling-ptr-apply-edit

6. Revert the "auto-annotate" patch.

7. Apply `git cl format`

AX-Relnotes: n/a.
Bug: chromium:1400059
Change-Id: I217d5c0b925da5176fc53baf95919a3690f1e9a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4570424
Reviewed-by: danakj <danakj@chromium.org>
Owners-Override: danakj <danakj@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1151859}
2023-06-01 15:02:25 +00:00
Zhiyuan Cai
9963867a46 [PriceInsights] Add a new OptimizationGuide type
Bug: b:285027460
Change-Id: Ia8ffa80faa0836fec1e40d85e7b8f8f8158a5fbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4577758
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Zhiyuan Cai <zhiyuancai@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1151454}
2023-05-31 20:39:53 +00:00
Sana Akbani
56a7538266 Adding a new OptTarget for text embedder model
Bug: b/284242171
Change-Id: Ifd41c4605a01081d3b63aa317e666de497b12fba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4569126
Reviewed-by: Jun Zou <junzou@chromium.org>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Sana Akbani <sanaakbani@google.com>
Cr-Commit-Position: refs/heads/main@{#1149810}
2023-05-26 18:04:05 +00:00
Khalid Peer
5c8013d396 [omnibox][zps] Encapsulate all caching inside ZeroSuggestCacheService.
Encapsulates all zero-suggest caching inside ZeroSuggestCacheService,
whether in-memory or pref-based. In addition to simplifying the code,
this allows the ZeroSuggestCacheService's observer model to be used by
Chrome Journeys without depending on launching the in-memory caching.

Bug: 1351224
Change-Id: I5fadf31347696703929552c0909e918ef4ddd7c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4544341
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Khalid Peer <khalidpeer@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Moe Ahmadi <mahmadi@chromium.org>
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1149435}
2023-05-25 23:29:42 +00:00
Ho Cheung
c4c27d8df5 Manual raw_ptr rewrite: //components
Bug: 1446392
Change-Id: Ie671b7921bbf4441cb8c3c03b5ec88600d064130
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4561504
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Auto-Submit: Ho Cheung <uioptt24@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1148492}
2023-05-24 14:12:39 +00:00
rajendrant
d06f74eec4 Move init time setting for new model store
Change-Id: I7e76953086ffdd336bd57f69009c2855abd8d6b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4298595
Commit-Queue: Raj T <rajendrant@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1147531}
2023-05-22 23:58:41 +00:00
Sana Akbani
adbe45bc10 Updating README.md in optimization_guide
Bug: b/283815496
Change-Id: If247d1f02b55ea7cb1d9cc6e1f4c0753b4e48413
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4553478
Reviewed-by: Jun Zou <junzou@chromium.org>
Commit-Queue: Sana Akbani <sanaakbani@google.com>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1147482}
2023-05-22 21:40:37 +00:00
Raj T
5aacebdb14 [iOS] Add new model support for optimization guide
Change-Id: I715f8a6f5f56562c8375fea71ab7ba2a53b578f9
Bug: b:244649670
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4171734
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Raj T <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1147410}
2023-05-22 19:45:09 +00:00
Catherine Liu
feb827c06d Disable batch update active tabs by default for desktop.
Bug: b/269341990
Change-Id: Ic51bf3a13a9088583b418bd17af9c5809feaefc9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4509773
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Quick-Run: Catherine Liu <catliu@chromium.org>
Auto-Submit: Catherine Liu <catliu@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1145658}
2023-05-17 22:30:44 +00:00
Catherine Liu
132442382b Clarify no hint available cases with additional enums.
Bug: b/281592746
Change-Id: I7e536148f415ce690716bf9d219477be73867317
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4525058
Commit-Queue: Catherine Liu <catliu@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1144451}
2023-05-15 23:29:53 +00:00
rajendrant
e3ab637017 Fix DCHECK when new model store backward compatible case
Bug: 1442722
Change-Id: Ic0dff28137e9ddcf2bbe33de38bff719628418fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4530630
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Raj T <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1144167}
2023-05-15 16:42:50 +00:00
rajendrant
a0c39f3306 Support relative paths in new model store
The older models in the store will be removed, and new models will be downloaded and saved as relative path.

Bug: 1442722
Change-Id: I22552dc2392b087baaf91d642c9299747fabfc55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4528957
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Raj T <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1143617}
2023-05-13 02:11:04 +00:00
rajendrant
e1e1924d53 Support relative paths in model store
Only store relative paths in the model store database w.r.t the base model store dir. This is behind feature and enabled for iOS.

Bug: 1442722
Change-Id: I831748e595674351005d14d61c22a54c65971a72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4521914
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Raj T <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1143515}
2023-05-12 21:44:51 +00:00
rajendrant
479b62b955 Fix model store purging of multiple entries
Bug: 1423079
Change-Id: Ic1d63d6a47f6f6c365d9b746572538d98c884ff2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4525081
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Raj T <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1143448}
2023-05-12 19:32:17 +00:00
Avi Drissman
d4f0708352 Move backup_util and bundle_locations to base/apple
Bug: 1444927
Change-Id: I1249c06632a27e7c2f403d543f04a815f08bdb00
Include-Ci-Only-Tests: true
Validate-Test-Flakiness: skip
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4525355
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1143395}
2023-05-12 18:05:44 +00:00
Peter Kasting
e2ab8d40df Add some "typename"s that are required in C++17.
Bug: 1444563
Change-Id: I9a03a143b09a90fbc817eef26b72c7e5e2ed3d18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4526735
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Tarun Bansal <tbansal@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1143367}
2023-05-12 17:39:20 +00:00
Catherine Liu
6653756324 Roll TFLite to Next Green Version
TFLite 2.13 to 2.14.
Version Changes:
tflite: 28399abb7f7381b5862ea5baf1ce6bd04f9486d1 to 9becb72d9b656f48de2bf00094910189434bc21e

Bug: b/201542766
Change-Id: Ifb553f089a5b52aef2dc0f4ebda1905ff0fe4a73
Cq-Include-Trybots: luci.chromium.try:android-pie-arm64-dbg
Cq-Include-Trybots: luci.chromium.try:android_arm64_dbg_recipe
Cq-Include-Trybots: luci.chromium.try:android_compile_x64_dbg
Cq-Include-Trybots: luci.chromium.try:linux_chromium_cfi_rel_ng
Cq-Include-Trybots: luci.chromium.try:linux_chromium_ubsan_rel_ng
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4514085
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Catherine Liu <catliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1141093}
2023-05-08 22:49:22 +00:00
Salvador Guerrero
cf80c820d3 Implemented wait for model availability and timeout on RequestDispatcher
Segmentation server-side models need to be loaded from disk or
network before they can be executed. Right now RequestDispatcher
doesn't take this into consideration when enqueueing requests, so they
may get dispatched before their model is ready.

This CL modifies RequestDispatcher to keep a list of models that
are yet to be loaded, and enqueues all requests that involve
those models. It also adds an OnModelUpdated listener to RequestDispatcher, this gets called when a model gets loaded or
updated and it's used to dispatch all requests for the model that is
ready.

There's also a timeout in case a model takes too long to load, or
when there's no model available.

Bug: 1443066
Change-Id: Ic551b6af61bfb946db09698b4485bb516de6ee42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4467213
Reviewed-by: Ritika Gupta <ritikagup@google.com>
Auto-Submit: Salvador Guerrero Ramos <salg@google.com>
Reviewed-by: Siddhartha S <ssid@chromium.org>
Commit-Queue: Salvador Guerrero Ramos <salg@google.com>
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1140923}
2023-05-08 17:21:52 +00:00
Robert Ogden
de01c2f56d Add a batch ExecuteWithInput method to the ModelExecutor
Makes a separate function for the batch functionality, doing so most of
the way down the call stack, so that all the calling code does not need
to be changed.

Bug: b/280623337
Change-Id: Ica0bdc665dd7f18aaa4d038551fe962e16ca5f21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4504748
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1140271}
2023-05-05 19:30:06 +00:00
Tommy C. Li
5196a1e71a [optimization_guide] Adds microseconds measurement to model execution
Adds:
OptimizationGuide.ModelExecutor.ExecutionThreadTimeMicroseconds

This is a finer grained version of:
OptimizationGuide.ModelExecutor.ExecutionThreadTime

Bug: b/244660860
Change-Id: Idefa5ec320729e4062f4c5cad7121de8277f638d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4507642
Auto-Submit: Tommy Li <tommycli@chromium.org>
Commit-Queue: Tommy Li <tommycli@chromium.org>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1139819}
2023-05-04 22:52:21 +00:00
Paul Semel
8311c1a3c9 DanglingPtr: mark dangling ptrs triggered at exit [1/N]
We are currently merging a CL that checks for dangling ptrs at exit, and
those pointers were detected to be dangling at exit
(crrev.com/c/4345458).

This new dangling ptrs check will help diagnose PartitionAlloc
quarantine memory bloat.

Bug: 1291138
Change-Id: Ic2f4be013e1e944c8211effa9ee745755661948f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4501235
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Owners-Override: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Paul Semel <paulsemel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1139622}
2023-05-04 17:12:46 +00:00
Robert Ogden
d5662009ae Remove C++ templated pack expansion from TFLite Executor
Makes it possible (easier) to have multiple inputs to these templated
classes.

Bug: b/280623337
Change-Id: I44c52ed6ce6c0c590ccc72714df83d917d5f871b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4500970
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Reviewed-by: Ravjit Uppal <ravjit@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1139475}
2023-05-04 13:16:07 +00:00
Robert Ogden
2f15ed6372 Move the Browsing Topics Annotator fuzz test
Moves the fuzz test into the browsing_topics component.

Verified this is fully working locally.

Bug: b/278162907
Change-Id: I4c26d117436316939145cc3c136f7a51f1df727a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4495631
Reviewed-by: Yao Xiao <yaoxia@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1139126}
2023-05-03 21:15:23 +00:00
Robert Ogden
930c53c3b7 Remove PageTopics from the PCAService
This code was all copied into browsing_topics and is directly owned
there in https://crrev.com/c/4476827.

Removes PageTopics from test usage and the PCAValidator.

Not removed:
* Usage in the fuzz test. That will be moved in the next CL.

Bug: b/278162907
Change-Id: I0a96e2b8dee3eaca0ce9efb4c16b322f469a804c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4492805
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1138469}
2023-05-02 17:08:22 +00:00
Sophie Chang
e534f6b7f2 Add a histogram to see how many users affected by Google search terms not being extracted
This also removes a histogram that always records 100% that was initially thought to be a cause.

Bug: b/280082710
Change-Id: I8e6c52cf0f18657ed15cbcd56111f64c6967a39f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4491547
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1137424}
2023-04-28 22:37:54 +00:00
Sophie Chang
015baf0e85 Remove batch entity metadata simplification code
It's a bit of a wash so get rid of one of the paths.

Bug: b/264887452
Change-Id: Ifdf1976e4185caec8a1e7a6b1c11084f8a659f58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4477806
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1135973}
2023-04-26 16:45:52 +00:00
Tarun Bansal
b711b4e329 Remove unused login_detection code
Remove unused login_detection code that integrates with chrome
browser password manager or optimization guide.

Logic related to OAuth is not deleted because it's used
by site isolation. The persistence logic that keeps track of
whether the user logged-in to a site is tracked by the
SiteIsolation layer.

Change-Id: I9d9a1311a932d8897c02acf29076251f62fe7c5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4410784
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Tarun Bansal <tbansal@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1135912}
2023-04-26 15:19:03 +00:00
“Hailey
9cbef9f055 [PWA] Add SegmentID for pwa
Add web app installation promotion's segment ID.

Bug: b/278782420
Change-Id: Ie8539a4836acc5d0c4cf23226d2a34fe1674dbb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4444107
Reviewed-by: Siddhartha S <ssid@chromium.org>
Reviewed-by: Shakti Sahu <shaktisahu@chromium.org>
Commit-Queue: Hailey Wang <haileywang@google.com>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1135071}
2023-04-25 06:50:35 +00:00
Sophie Chang
389f0fdb4d Remove contentannotationsstoragestatus min magnitude histograms
These are not helpful

Bug: 1439382
Change-Id: I0b14d175c842df2c050b76e46828a57490a0abd2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4471207
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Robert Ogden <robertogden@chromium.org>
Auto-Submit: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1134987}
2023-04-25 02:08:05 +00:00
Claudio DeSouza
0a6928e1b6 Replace base::GUID uses with base::Uuid (71/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/optimization_guide/core

This CL was uploaded by git cl split.

Bug: 1428566
Change-Id: Idd6978e8262f6ce461b6c62dfe95c291728424dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4430101
Auto-Submit: Claudio DeSouza <cdesouza@igalia.com>
Commit-Queue: Michael Crouse <mcrouse@chromium.org>
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1132533}
2023-04-19 16:19:32 +00:00
Sophie Chang
340c53e96d Add a new opt target for history clusters module ranking
Bug: b/276761636
Change-Id: If60c892327978091d2aefe234d1ea0a2b2db7c41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4438169
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1131646}
2023-04-18 02:22:23 +00:00
Catherine Liu
232a936607 Add a hashed input format for OptimizationFilters.
Bug: b/265214281
Change-Id: Ic2eddd5ef4662267f809793d627b4265730e4517
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4412618
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Catherine Liu <catliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1128946}
2023-04-11 22:18:20 +00:00
Robert Ogden
ed5c156a5c Add histogram for visibility score on the Google SRP
This is an intentional blind spot in UKM, so adding a histogram instead to get a better signal of the visibility distribution of SRP
loads.

Testing this is kinda impossible, spent way too long trying, because
this line (https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:components/google/core/common/google_util.cc;l=252;drc=f96ad054503fc577a03283746db7cde05077a328)
won't allow the Google host to be changed to the embedded test server,
and in unittests there's not a way to create a HistoryVisit without a
visit_id.

Bug: b/275549506
Change-Id: Ie279c2edb6129945226de44b739101ea4b96f611
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4412828
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1128752}
2023-04-11 17:54:49 +00:00
Robert Ogden
e6ce059259 Turn on PageVisibility Annotations by default
Default enabled locales were done in https://crrev.com/c/4378099, but
that CL forgot to turn the feature on. oops

Bug: b/244641834
Change-Id: Idfc1a5bea8fd4bc3d9654bbf433fe36af83fb64b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4412619
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1128483}
2023-04-11 04:23:49 +00:00
Sophie Chang
85dea50d71 Static initialize value from opt guide switches that get called very often
Bug: b/276320968
Change-Id: I332423ecb9e8c1be170e770e2f14b5e92db0a04a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4402399
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Auto-Submit: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Michael Crouse <mcrouse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126837}
2023-04-05 21:30:18 +00:00
Claudio DeSouza
ec051260d6 Replace base::GUID uses with base::Uuid (26/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.

Changes for path: /components/optimization_guide/core

This CL was uploaded by git cl split.

R=rajendrant@chromium.org

Bug: 1428566
Change-Id: I5cb2ecf92f93f015fecbd3b4bfa77c3b7da1f84d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4396047
Reviewed-by: Raj T <rajendrant@chromium.org>
Auto-Submit: Claudio DeSouza <cdesouza@igalia.com>
Commit-Queue: Raj T <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1125662}
2023-04-03 22:45:10 +00:00
Catherine Liu
7d71dc3b01 Remove log line.
Bug: 1429868
Change-Id: I00db3c3de5415b9d2d4490ffe161b7f897007cd1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4396083
Commit-Queue: Catherine Liu <catliu@chromium.org>
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1125520}
2023-04-03 19:59:02 +00:00
Tommy C. Li
df33ea61b5 [page_image_service] Rename directory to page_image_service.
We started with `image_service` but multiple reviewers have complained
that this is too generic of a name.

We settled on `page_image_service` to clarify that this provides an
image relevant to a specific page.

We rejected a bunch of other names so please let's not relitigate it.

This CL is a pure directory and namespace rename. I didn't even rename
the C++ classes yet, because my goal was to keep this as mechanical and
easily reviewable as possible.

Bug: b/244507194, 1367485, b/248367751
Change-Id: I52126f24c12757225a01c0ad0cee24b2f6435226
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4376804
Owners-Override: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Tommy Li <tommycli@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1123921}
2023-03-29 23:04:52 +00:00
Robert Ogden
5e394b5fba Enable PageVisibility Annotation by default
Bug: b/244641834
Change-Id: I064ba14d0c0016dffb0829c9314ed651665f8f68
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4378099
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1123300}
2023-03-28 22:00:48 +00:00
Keishi Hattori
9b33657435 Add RAW_PTR_EXCLUSION to files in components/
Add RAW_PTR_EXCLUSION to files in components/ where the rewriter could not automatically rewrite.

Change was generated by processing the output of the rewriter.

Bug: 1273182
Change-Id: I4d75a27f1f634f9ed7636abb113ca9e6a8b0fb49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4170101
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Owners-Override: Keishi Hattori <keishi@chromium.org>
Reviewed-by: Bartek Nowierski <bartekn@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1121633}
2023-03-24 12:23:35 +00:00
Sophie Chang
e5312a7b74 Reserve opt type that is not used by Chrome
Bug: b/274506340
Change-Id: I4e38db2a26797408f8a9598024369374bc1cabb9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4367306
Reviewed-by: Michael Crouse <mcrouse@chromium.org>
Commit-Queue: Michael Crouse <mcrouse@chromium.org>
Commit-Queue: Sophie Chang <sophiechang@chromium.org>
Auto-Submit: Sophie Chang <sophiechang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1121441}
2023-03-23 22:56:09 +00:00
Catherine Liu
d1db59bf77 Update on demand API to no longer require bundling with registered optimization types.
Bug: b/266694081
Change-Id: I329f2c749e2ce7899e17b86482857096642d7a70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4345965
Reviewed-by: Sophie Chang <sophiechang@chromium.org>
Commit-Queue: Catherine Liu <catliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1120846}
2023-03-22 22:52:25 +00:00