Add mojo typemap for ts Url [chromium/src : main]

0 views
Skip to first unread message

Fred Shih (Gerrit)

unread,
Oct 17, 2025, 5:51:06 PM10/17/25
to Demetrios Papadopoulos, Michael Cui, Roman Arora, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
Attention needed from Michael Cui and Roman Arora

Fred Shih voted and added 2 comments

Votes added by Fred Shih

Commit-Queue+1

2 comments

Commit Message
Line 8, Patchset 23:
Demetrios Papadopoulos . resolved

Nit: Add a small sentence explaining that this updates Mojo's `Url` class throughout the codebase to just `string` ?

Fred Shih

Done

File url/mojom/url_converter.ts
Line 3, Patchset 23:// found in the LICENSE file.
Demetrios Papadopoulos . resolved

Nit: Blank line after licensce?

Fred Shih

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Cui
  • Roman Arora
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
Gerrit-Change-Number: 7018797
Gerrit-PatchSet: 23
Gerrit-Owner: Fred Shih <ff...@chromium.org>
Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
Gerrit-Reviewer: Michael Cui <ml...@google.com>
Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
Gerrit-CC: Peter Williamson <pet...@chromium.org>
Gerrit-CC: Sophie Chang <sophi...@chromium.org>
Gerrit-Attention: Roman Arora <roman...@chromium.org>
Gerrit-Attention: Michael Cui <ml...@google.com>
Gerrit-Comment-Date: Fri, 17 Oct 2025 21:50:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Demetrios Papadopoulos <dpa...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Cui (Gerrit)

unread,
Oct 19, 2025, 8:12:08 PM10/19/25
to Fred Shih, Demetrios Papadopoulos, Michael Cui, Roman Arora, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
Attention needed from Fred Shih and Roman Arora

Michael Cui added 11 comments

Patchset-level comments
File-level comment, Patchset 25 (Latest):
Michael Cui . unresolved

I don't have much bandwidth to review, so this is just a quick skim - sorry!

Unfortunately Polymer - still used on CrOS - does not have type checking in templates. I think you will need to assume that [Beyoncé rule](https://abseil.io/resources/swe-book/html/ch11.html#the_beyonceacutesemicolon_rule) applies - i.e. you are free to break anyone which uses `.url` in a Polymer template if they don't have a test for it.

It might be worth doing some due diligence and pre-emptively looking out for _any_ usage of `.url` in Polymer templates, in case some aren't covered by tests.

File ash/webui/boca_ui/resources/app/client_delegate.ts
Line 85, Patchset 25 (Latest): photoUrl: session.teacher.photoUrl ? session.teacher.photoUrl : undefined,
Michael Cui . unresolved

Assuming that `session.teacher.photoUrl` is `string | null` here, this can be replaced with `session.teacher.photoUrl ?? undefined` (here and below).

File ash/webui/common/resources/bluetooth/bluetooth_utils.ts
Line 104, Patchset 25 (Latest): if (!leftBudImageUrl || !rightBudImageUrl || !caseImageUrl) {
return false;
}
Michael Cui . unresolved

This can be removed now (as it's equivalent to the return below).

File ash/webui/common/resources/sea_pen/sea_pen_utils.ts
Line 15, Patchset 25 (Latest):export function isImageDataUrl(maybeDataUrl: unknown): maybeDataUrl is Url {
return typeof maybeDataUrl === 'string' &&
(maybeDataUrl.startsWith('data:image/png;base64') ||
maybeDataUrl.startsWith('data:image/jpeg;base64'));
}
Michael Cui . unresolved

(pre-existing issue)

This is quite scary as type predicates must be a two-way implication: "`obj` is T iff `typeAssertion(obj)`", but isn't the case. See https://effectivetypescript.com/2024/02/27/type-guards/#What-if-you-return-false.

We should probably add a TODO here to address this, as it's outside the scope of this CL.

File ash/webui/help_app_ui/resources/browser_proxy.ts
Line 48, Patchset 25 (Latest): // TODO(b/279132899): Figure out why `url` is an empty object when it should
Michael Cui . unresolved

Have you looked at this bug? If this bug isn't fixed, will this CL break in the cases where `url` was an empty object?

File chrome/browser/resources/commerce/product_specifications/app.ts
Line 598, Patchset 25 (Latest): const urlList: Url[] = urls;
const {productInfos} =
await this.shoppingApi_.getProductInfoForUrls(urlList);
Michael Cui . unresolved
optional: This can be simplified:
```suggestion
const {productInfos} =
await this.shoppingApi_.getProductInfoForUrls(urlList);
```
File chrome/browser/resources/commerce/product_specifications/comparison_table_list_item.ts
Line 92, Patchset 25 (Latest): protected accessor tableUrl_: Url = '';
Michael Cui . unresolved

Leave out type annotations for trivially inferred types: variables or parameters initialized to a `string`, `number`, `boolean`, `RegExp` literal or `new` expression.

https://google.github.io/styleguide/tsguide.html#type-inference

I assume this also applies to `accessor`s too.

File chrome/browser/resources/glic/glic_api_impl/glic_api_host.ts
Line 1845, Patchset 25 (Latest): if (url === null) {
return undefined;
}
return url;
Michael Cui . unresolved

This can now be simplified to `url ?? undefined`.

File chrome/browser/resources/new_tab_page/app.ts
Line 719, Patchset 25 (Latest): return this.theme_ && this.theme_.backgroundImageAttributionUrl ?
this.theme_.backgroundImageAttributionUrl :
'';
Michael Cui . unresolved

This can be simplified to match the surrounding methods:

```suggestion
return this.theme_ && this.theme_.backgroundImageAttributionUrl || '';
```
File chrome/browser/resources/new_tab_page/doodle_share_dialog.ts
Line 61, Patchset 25 (Latest): accessor url: Url = '';
Michael Cui . unresolved

Leave out type annotations for trivially inferred types: variables or parameters initialized to a `string`, `number`, `boolean`, `RegExp` literal or `new` expression.

https://google.github.io/styleguide/tsguide.html#type-inference

I assume this also applies to `accessor`s too.

File chrome/test/data/webui/chromeos/personalization_app/google_photos_photos_element_test.ts
Line 379, Patchset 25 (Latest): // The wallpaper controller is expected to impose max resolution.
Michael Cui . unresolved

I think we should probably undo this change, and just adjust line 341 above to match the other tests in this file.

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Shih
  • Roman Arora
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
Gerrit-Change-Number: 7018797
Gerrit-PatchSet: 25
Gerrit-Owner: Fred Shih <ff...@chromium.org>
Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
Gerrit-Reviewer: Michael Cui <ml...@google.com>
Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
Gerrit-CC: Peter Williamson <pet...@chromium.org>
Gerrit-CC: Sophie Chang <sophi...@chromium.org>
Gerrit-Attention: Roman Arora <roman...@chromium.org>
Gerrit-Attention: Fred Shih <ff...@chromium.org>
Gerrit-Comment-Date: Mon, 20 Oct 2025 00:11:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Fred Shih (Gerrit)

unread,
Oct 20, 2025, 6:01:38 PM10/20/25
to Demetrios Papadopoulos, Michael Cui, Roman Arora, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
Attention needed from Demetrios Papadopoulos, Michael Cui and Roman Arora

Fred Shih added 12 comments

Patchset-level comments
Michael Cui . unresolved

I don't have much bandwidth to review, so this is just a quick skim - sorry!

Unfortunately Polymer - still used on CrOS - does not have type checking in templates. I think you will need to assume that [Beyoncé rule](https://abseil.io/resources/swe-book/html/ch11.html#the_beyonceacutesemicolon_rule) applies - i.e. you are free to break anyone which uses `.url` in a Polymer template if they don't have a test for it.

It might be worth doing some due diligence and pre-emptively looking out for _any_ usage of `.url` in Polymer templates, in case some aren't covered by tests.

Fred Shih

I did do a grep across all the .html files and tried to catch as many as I could. Obviously this doesn't catch the cases when they don't use the field accessors, but I can't think of any feasible way to catch them (and gemini couldn't either..).

I did play around with the emulator as much as I could to see if there are any regressions. But given the size of this CL, it's hard to know for sure...

File ash/webui/boca_ui/resources/app/client_delegate.ts
Line 85, Patchset 25: photoUrl: session.teacher.photoUrl ? session.teacher.photoUrl : undefined,
Michael Cui . resolved

Assuming that `session.teacher.photoUrl` is `string | null` here, this can be replaced with `session.teacher.photoUrl ?? undefined` (here and below).

Fred Shih

done, I did not update the rest of the file though. Some day we will fix the null vs undefined for mojo...

File ash/webui/common/resources/bluetooth/bluetooth_utils.ts
Line 104, Patchset 25: if (!leftBudImageUrl || !rightBudImageUrl || !caseImageUrl) {
return false;
}
Michael Cui . resolved

This can be removed now (as it's equivalent to the return below).

Fred Shih

Done

File ash/webui/common/resources/sea_pen/sea_pen_utils.ts
Line 15, Patchset 25:export function isImageDataUrl(maybeDataUrl: unknown): maybeDataUrl is Url {

return typeof maybeDataUrl === 'string' &&
(maybeDataUrl.startsWith('data:image/png;base64') ||
maybeDataUrl.startsWith('data:image/jpeg;base64'));
}
Michael Cui . resolved

(pre-existing issue)

This is quite scary as type predicates must be a two-way implication: "`obj` is T iff `typeAssertion(obj)`", but isn't the case. See https://effectivetypescript.com/2024/02/27/type-guards/#What-if-you-return-false.

We should probably add a TODO here to address this, as it's outside the scope of this CL.

Fred Shih

Added a TODO.

File ash/webui/help_app_ui/resources/browser_proxy.ts
Line 48, Patchset 25: // TODO(b/279132899): Figure out why `url` is an empty object when it should
Michael Cui . resolved

Have you looked at this bug? If this bug isn't fixed, will this CL break in the cases where `url` was an empty object?

Fred Shih

I don't think this is a mojo issue. This looks like it's a problem in the help_app_ui page itself. At some point they're passing an object type to themselves, which is handled by the if statement. The second clause checks if it's not a string type and returns an empty string if that's the case.

File ash/webui/personalization_app/resources/js/wallpaper/wallpaper_controller.ts
Line 76, Patchset 13 (Parent): return {...value, url: value.url + '=s512'};
Fred Shih . resolved

I have no idea why this part is needed..

Fred Shih

Acknowledged

File chrome/browser/resources/commerce/product_specifications/app.ts
Line 598, Patchset 25: const urlList: Url[] = urls;

const {productInfos} =
await this.shoppingApi_.getProductInfoForUrls(urlList);
Michael Cui . resolved
optional: This can be simplified:
```suggestion
const {productInfos} =
await this.shoppingApi_.getProductInfoForUrls(urlList);
```
Fred Shih

Done

File chrome/browser/resources/commerce/product_specifications/comparison_table_list_item.ts
Line 92, Patchset 25: protected accessor tableUrl_: Url = '';
Michael Cui . resolved

Leave out type annotations for trivially inferred types: variables or parameters initialized to a `string`, `number`, `boolean`, `RegExp` literal or `new` expression.

https://google.github.io/styleguide/tsguide.html#type-inference

I assume this also applies to `accessor`s too.

Fred Shih

Done

File chrome/browser/resources/glic/glic_api_impl/glic_api_host.ts
Line 1845, Patchset 25: if (url === null) {
return undefined;
}
return url;
Michael Cui . resolved

This can now be simplified to `url ?? undefined`.

Fred Shih

this is not equivalent, '' evaluates to false. url ?? undefined would change the empty string return to an undefined return.

It probably won't make a diff in the implementation, but I'd like to avoid unnecessary behavioural changes in this monster CL :p

File chrome/browser/resources/new_tab_page/app.ts
Line 719, Patchset 25: return this.theme_ && this.theme_.backgroundImageAttributionUrl ?
this.theme_.backgroundImageAttributionUrl :
'';
Michael Cui . resolved

This can be simplified to match the surrounding methods:

```suggestion
return this.theme_ && this.theme_.backgroundImageAttributionUrl || '';
```
Fred Shih

Done

File chrome/browser/resources/new_tab_page/doodle_share_dialog.ts
Line 61, Patchset 25: accessor url: Url = '';
Michael Cui . resolved

Leave out type annotations for trivially inferred types: variables or parameters initialized to a `string`, `number`, `boolean`, `RegExp` literal or `new` expression.

https://google.github.io/styleguide/tsguide.html#type-inference

I assume this also applies to `accessor`s too.

Fred Shih

Done

File chrome/test/data/webui/chromeos/personalization_app/google_photos_photos_element_test.ts
Line 379, Patchset 25: // The wallpaper controller is expected to impose max resolution.
Michael Cui . resolved

I think we should probably undo this change, and just adjust line 341 above to match the other tests in this file.

Fred Shih

The previous setup no longer works and is somewhat brittle. It used to work because the forEach photo was an object, so it was passed by reference. Therefore url += '=s512' would mutate the existing object. Now that photos is a string, it is copied in the iteration, so photo += '=s512' no longer mutates the existing photos object.

It's just a bad pattern to hold on to a large object that is mutated throughout the test. It took me a while to figure out why this test broke :\

Open in Gerrit

Related details

Attention is currently required from:
  • Demetrios Papadopoulos
  • Michael Cui
  • Roman Arora
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
    Gerrit-Change-Number: 7018797
    Gerrit-PatchSet: 26
    Gerrit-Owner: Fred Shih <ff...@chromium.org>
    Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
    Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
    Gerrit-Reviewer: Michael Cui <ml...@google.com>
    Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
    Gerrit-CC: Peter Williamson <pet...@chromium.org>
    Gerrit-CC: Sophie Chang <sophi...@chromium.org>
    Gerrit-Attention: Roman Arora <roman...@chromium.org>
    Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
    Gerrit-Attention: Michael Cui <ml...@google.com>
    Gerrit-Comment-Date: Mon, 20 Oct 2025 22:01:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Michael Cui <ml...@google.com>
    Comment-In-Reply-To: Fred Shih <ff...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Michael Cui (Gerrit)

    unread,
    Oct 20, 2025, 6:51:57 PM10/20/25
    to Fred Shih, Michael Cui, Demetrios Papadopoulos, Roman Arora, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
    Attention needed from Demetrios Papadopoulos, Fred Shih and Roman Arora

    Michael Cui voted and added 3 comments

    Votes added by Michael Cui

    Code-Review+1

    3 comments

    Patchset-level comments
    File-level comment, Patchset 25:
    Michael Cui . resolved

    I don't have much bandwidth to review, so this is just a quick skim - sorry!

    Unfortunately Polymer - still used on CrOS - does not have type checking in templates. I think you will need to assume that [Beyoncé rule](https://abseil.io/resources/swe-book/html/ch11.html#the_beyonceacutesemicolon_rule) applies - i.e. you are free to break anyone which uses `.url` in a Polymer template if they don't have a test for it.

    It might be worth doing some due diligence and pre-emptively looking out for _any_ usage of `.url` in Polymer templates, in case some aren't covered by tests.

    Fred Shih

    I did do a grep across all the .html files and tried to catch as many as I could. Obviously this doesn't catch the cases when they don't use the field accessors, but I can't think of any feasible way to catch them (and gemini couldn't either..).

    I did play around with the emulator as much as I could to see if there are any regressions. But given the size of this CL, it's hard to know for sure...

    Michael Cui

    Acknowledged

    File chrome/browser/resources/glic/glic_api_impl/glic_api_host.ts
    Line 1845, Patchset 25: if (url === null) {
    return undefined;
    }
    return url;
    Michael Cui . resolved

    This can now be simplified to `url ?? undefined`.

    Fred Shih

    this is not equivalent, '' evaluates to false. url ?? undefined would change the empty string return to an undefined return.

    It probably won't make a diff in the implementation, but I'd like to avoid unnecessary behavioural changes in this monster CL :p

    Michael Cui

    This is using `??` instead of `||`, so it should be the same: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing

    Agreed that we should avoid behavioral changes in this CL. We should keep this as-is.

    File chrome/test/data/webui/chromeos/personalization_app/google_photos_photos_element_test.ts
    Line 379, Patchset 25: // The wallpaper controller is expected to impose max resolution.
    Michael Cui . resolved

    I think we should probably undo this change, and just adjust line 341 above to match the other tests in this file.

    Fred Shih

    The previous setup no longer works and is somewhat brittle. It used to work because the forEach photo was an object, so it was passed by reference. Therefore url += '=s512' would mutate the existing object. Now that photos is a string, it is copied in the iteration, so photo += '=s512' no longer mutates the existing photos object.

    It's just a bad pattern to hold on to a large object that is mutated throughout the test. It took me a while to figure out why this test broke :\

    Michael Cui

    Acknowledged - this seems tricky to handle.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Demetrios Papadopoulos
    • Fred Shih
    • Roman Arora
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
      Gerrit-Change-Number: 7018797
      Gerrit-PatchSet: 26
      Gerrit-Owner: Fred Shih <ff...@chromium.org>
      Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
      Gerrit-Reviewer: Michael Cui <ml...@google.com>
      Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
      Gerrit-CC: Peter Williamson <pet...@chromium.org>
      Gerrit-CC: Sophie Chang <sophi...@chromium.org>
      Gerrit-Attention: Roman Arora <roman...@chromium.org>
      Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
      Gerrit-Attention: Fred Shih <ff...@chromium.org>
      Gerrit-Comment-Date: Mon, 20 Oct 2025 22:51:06 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Roman Arora (Gerrit)

      unread,
      Oct 21, 2025, 2:15:03 PM10/21/25
      to Fred Shih, Michael Cui, Demetrios Papadopoulos, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
      Attention needed from Demetrios Papadopoulos and Fred Shih

      Roman Arora voted and added 1 comment

      Votes added by Roman Arora

      Code-Review+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 23:
      Fred Shih . resolved

      @roman, would it be better if I wait until next year to submit this?

      Demetrios Papadopoulos

      Perhaps right before the branch cut, so that anyone who needs to merge after the branch cut can do so more easily?

      Roman Arora

      yes, ideally before the M143 branch cut, I imagine Friday Oct 24th would be a good date, thanks!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Demetrios Papadopoulos
      • Fred Shih
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
        Gerrit-Change-Number: 7018797
        Gerrit-PatchSet: 26
        Gerrit-Owner: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
        Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: Michael Cui <ml...@google.com>
        Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
        Gerrit-CC: Peter Williamson <pet...@chromium.org>
        Gerrit-CC: Sophie Chang <sophi...@chromium.org>
        Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
        Gerrit-Attention: Fred Shih <ff...@chromium.org>
        Gerrit-Comment-Date: Tue, 21 Oct 2025 18:14:48 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Demetrios Papadopoulos <dpa...@chromium.org>
        Comment-In-Reply-To: Fred Shih <ff...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Fred Shih (Gerrit)

        unread,
        Oct 23, 2025, 7:41:16 PM10/23/25
        to Code Review Nudger, Roman Arora, Michael Cui, Demetrios Papadopoulos, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com

        Fred Shih added 1 comment

        Patchset-level comments
        File-level comment, Patchset 29 (Latest):
        Fred Shih . resolved

        unfortunately (or fortunately??) I am going to be busy with a trip and then will be going on vacation soon. Rebasing this CL has been quite time consuming and complicated, so I'll probably leave this until after I come back.

        I do want to look more deeply into the personalization page. That page seem to be dropping type information in their code which makes it very difficult to migrate their code correctly. I've spent most of my time on that page and that's the page that breaks after every rebase... Maybe we can do something about the page's mojom defs or impl to allow the compiler to catch more issues.

        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
        Gerrit-Change-Number: 7018797
        Gerrit-PatchSet: 29
        Gerrit-Owner: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
        Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: Michael Cui <ml...@google.com>
        Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: Peter Williamson <pet...@chromium.org>
        Gerrit-CC: Sophie Chang <sophi...@chromium.org>
        Gerrit-Comment-Date: Thu, 23 Oct 2025 23:40:58 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Demetrios Papadopoulos (Gerrit)

        unread,
        Jan 20, 2026, 3:37:44 PM (11 hours ago) Jan 20
        to Fred Shih, Code Review Nudger, Roman Arora, Michael Cui, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
        Attention needed from Fred Shih

        Demetrios Papadopoulos added 1 comment

        Patchset-level comments
        File-level comment, Patchset 29:
        Fred Shih . unresolved

        unfortunately (or fortunately??) I am going to be busy with a trip and then will be going on vacation soon. Rebasing this CL has been quite time consuming and complicated, so I'll probably leave this until after I come back.

        I do want to look more deeply into the personalization page. That page seem to be dropping type information in their code which makes it very difficult to migrate their code correctly. I've spent most of my time on that page and that's the page that breaks after every rebase... Maybe we can do something about the page's mojom defs or impl to allow the compiler to catch more issues.

        Demetrios Papadopoulos

        Any plans to pick up that CL again soon? Asking to evaluate whether we should/could try to push this forward from the WebUI side in Q1. Thanks!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Fred Shih
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
          Gerrit-Change-Number: 7018797
          Gerrit-PatchSet: 32
          Gerrit-Owner: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Michael Cui <ml...@google.com>
          Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: Peter Williamson <pet...@chromium.org>
          Gerrit-CC: Sophie Chang <sophi...@chromium.org>
          Gerrit-Attention: Fred Shih <ff...@chromium.org>
          Gerrit-Comment-Date: Tue, 20 Jan 2026 20:37:34 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Fred Shih <ff...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Fred Shih (Gerrit)

          unread,
          Jan 20, 2026, 6:23:45 PM (8 hours ago) Jan 20
          to Code Review Nudger, Roman Arora, Michael Cui, Demetrios Papadopoulos, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, vasilii+watchlis...@chromium.org, gcasto+w...@chromium.org, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
          Attention needed from Demetrios Papadopoulos, Michael Cui and Roman Arora

          Fred Shih added 1 comment

          Patchset-level comments
          Fred Shih . unresolved

          unfortunately (or fortunately??) I am going to be busy with a trip and then will be going on vacation soon. Rebasing this CL has been quite time consuming and complicated, so I'll probably leave this until after I come back.

          I do want to look more deeply into the personalization page. That page seem to be dropping type information in their code which makes it very difficult to migrate their code correctly. I've spent most of my time on that page and that's the page that breaks after every rebase... Maybe we can do something about the page's mojom defs or impl to allow the compiler to catch more issues.

          Demetrios Papadopoulos

          Any plans to pick up that CL again soon? Asking to evaluate whether we should/could try to push this forward from the WebUI side in Q1. Thanks!

          Fred Shih

          Yes! I will get a working CL by EoD.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Demetrios Papadopoulos
          • Michael Cui
          • Roman Arora
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
          Gerrit-Change-Number: 7018797
          Gerrit-PatchSet: 35
          Gerrit-Owner: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Michael Cui <ml...@google.com>
          Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: Peter Williamson <pet...@chromium.org>
          Gerrit-CC: Sophie Chang <sophi...@chromium.org>
          Gerrit-Attention: Roman Arora <roman...@chromium.org>
          Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Attention: Michael Cui <ml...@google.com>
          Gerrit-Comment-Date: Tue, 20 Jan 2026 23:23:35 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Fred Shih (Gerrit)

          unread,
          Jan 20, 2026, 10:44:17 PM (3 hours ago) Jan 20
          to Jerome Jiang, Mirko Bonadei, Code Review Nudger, Roman Arora, Michael Cui, Demetrios Papadopoulos, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, jz...@chromium.org, fgal...@chromium.org, mar...@chromium.org, vasilii+watchlis...@chromium.org, gcasto+w...@chromium.org, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
          Attention needed from Demetrios Papadopoulos, Michael Cui and Roman Arora

          Fred Shih added 1 comment

          Patchset-level comments
          File-level comment, Patchset 42 (Latest):
          Fred Shih . resolved

          alrighty! Ready for review. PTAL again, sorry it's (still) huge.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Demetrios Papadopoulos
          • Michael Cui
          • Roman Arora
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
          Gerrit-Change-Number: 7018797
          Gerrit-PatchSet: 42
          Gerrit-Owner: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Michael Cui <ml...@google.com>
          Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: Jerome Jiang <ji...@chromium.org>
          Gerrit-CC: Mirko Bonadei <mbon...@chromium.org>
          Gerrit-CC: Peter Williamson <pet...@chromium.org>
          Gerrit-CC: Sophie Chang <sophi...@chromium.org>
          Gerrit-Attention: Roman Arora <roman...@chromium.org>
          Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
          Gerrit-Attention: Michael Cui <ml...@google.com>
          Gerrit-Comment-Date: Wed, 21 Jan 2026 03:44:08 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Fred Shih (Gerrit)

          unread,
          Jan 20, 2026, 10:46:28 PM (3 hours ago) Jan 20
          to Jerome Jiang, Mirko Bonadei, Code Review Nudger, Roman Arora, Michael Cui, Demetrios Papadopoulos, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, jz...@chromium.org, fgal...@chromium.org, mar...@chromium.org, vasilii+watchlis...@chromium.org, gcasto+w...@chromium.org, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
          Attention needed from Demetrios Papadopoulos, Michael Cui and Roman Arora

          Fred Shih voted and added 1 comment

          Votes added by Fred Shih

          Commit-Queue+1

          1 comment

          Patchset-level comments

          unfortunately (or fortunately??) I am going to be busy with a trip and then will be going on vacation soon. Rebasing this CL has been quite time consuming and complicated, so I'll probably leave this until after I come back.

          I do want to look more deeply into the personalization page. That page seem to be dropping type information in their code which makes it very difficult to migrate their code correctly. I've spent most of my time on that page and that's the page that breaks after every rebase... Maybe we can do something about the page's mojom defs or impl to allow the compiler to catch more issues.

          Demetrios Papadopoulos

          Any plans to pick up that CL again soon? Asking to evaluate whether we should/could try to push this forward from the WebUI side in Q1. Thanks!

          Fred Shih

          Yes! I will get a working CL by EoD.

          Fred Shih

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Demetrios Papadopoulos
          • Michael Cui
          • Roman Arora
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
            Gerrit-Change-Number: 7018797
            Gerrit-PatchSet: 43
            Gerrit-Owner: Fred Shih <ff...@chromium.org>
            Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
            Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
            Gerrit-Reviewer: Michael Cui <ml...@google.com>
            Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
            Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
            Gerrit-CC: Jerome Jiang <ji...@chromium.org>
            Gerrit-CC: Mirko Bonadei <mbon...@chromium.org>
            Gerrit-CC: Peter Williamson <pet...@chromium.org>
            Gerrit-CC: Sophie Chang <sophi...@chromium.org>
            Gerrit-Attention: Roman Arora <roman...@chromium.org>
            Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
            Gerrit-Attention: Michael Cui <ml...@google.com>
            Gerrit-Comment-Date: Wed, 21 Jan 2026 03:46:19 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Michael Cui (Gerrit)

            unread,
            Jan 20, 2026, 11:12:50 PM (3 hours ago) Jan 20
            to Fred Shih, Michael Cui, Jerome Jiang, Mirko Bonadei, Code Review Nudger, Roman Arora, Demetrios Papadopoulos, Sophie Chang, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Peter Williamson, jz...@chromium.org, fgal...@chromium.org, mar...@chromium.org, vasilii+watchlis...@chromium.org, gcasto+w...@chromium.org, feature-me...@chromium.org, ananyasee...@google.com, ajayramamurth...@google.com, alexmt...@chromium.org, apaselti...@chromium.org, ashleydp+fe...@google.com, ayman...@chromium.org, cambickel+fe...@google.com, chadduffin+wa...@chromium.org, chlily...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chrome-tab-group-en...@google.com, chromeos-ca...@google.com, chromium-a...@chromium.org, crisrael+w...@google.com, croissant-...@chromium.org, cros-setti...@google.com, dclasson+w...@google.com, dewitt...@chromium.org, dfried...@chromium.org, druber...@chromium.org, dtraino...@chromium.org, estali...@chromium.org, extension...@chromium.org, gavinwill+watch-...@chromium.org, hais+wat...@google.com, hansberry+wa...@chromium.org, hansberry+w...@chromium.org, hansenmichael...@google.com, hsuregan+wat...@chromium.org, jackshira+wa...@google.com, jackshira+w...@google.com, jdonnel...@chromium.org, jiajunz+wat...@google.com, jimmyxgong+watch...@chromium.org, khorimoto+wa...@chromium.org, longbowei+fe...@google.com, mdjone...@chromium.org, mfoltz+wa...@chromium.org, mickeybu...@chromium.org, niharm...@google.com, nikhilcn+wat...@google.com, omnibox-...@chromium.org, oshima...@chromium.org, pushi+wat...@google.com, rrsilva+wat...@google.com, suetfei+wa...@google.com, wangdanny+fe...@google.com, xiangdongkong+...@google.com, xlythe+wa...@google.com, yuezhang...@chromium.org, yyhyyh+fee...@google.com
            Attention needed from Demetrios Papadopoulos, Fred Shih and Roman Arora

            Michael Cui voted and added 4 comments

            Votes added by Michael Cui

            Code-Review+1

            4 comments

            File chrome/browser/resources/suggest_internals/request.ts
            Line 101, Patchset 43 (Parent): // Find pgcl value in request url.
            Michael Cui . unresolved

            nit: Was this comment removal unintentional?

            File chrome/test/data/webui/downloads/item_test.ts
            Line 94, Patchset 43 (Parent):
            Michael Cui . unresolved

            nit: Was this blank line removal unintentional?

            File ui/webui/resources/cr_components/composebox/contextual_action_menu.html.ts
            File-level comment, Patchset 43 (Latest):
            Michael Cui . unresolved

            The formatting in this file seems to be very weird, can you revert this file and only commit the .url removal?

            File ui/webui/resources/cr_components/history_embeddings/history_embeddings.html.ts
            Line 34, Patchset 43 (Latest): ${this.searchResult_?.items.map((item, index) => html` <cr-url-list-item url="${item.url}" title="${item.title}"
            Michael Cui . unresolved

            nit: This formatting looks incorrect, we should rever it to the previous formatting (except without the extra .url).

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Demetrios Papadopoulos
            • Fred Shih
            • Roman Arora
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
              Gerrit-Change-Number: 7018797
              Gerrit-PatchSet: 43
              Gerrit-Owner: Fred Shih <ff...@chromium.org>
              Gerrit-Reviewer: Demetrios Papadopoulos <dpa...@chromium.org>
              Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
              Gerrit-Reviewer: Michael Cui <ml...@google.com>
              Gerrit-Reviewer: Roman Arora <roman...@chromium.org>
              Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
              Gerrit-CC: Jerome Jiang <ji...@chromium.org>
              Gerrit-CC: Mirko Bonadei <mbon...@chromium.org>
              Gerrit-CC: Peter Williamson <pet...@chromium.org>
              Gerrit-CC: Sophie Chang <sophi...@chromium.org>
              Gerrit-Attention: Roman Arora <roman...@chromium.org>
              Gerrit-Attention: Demetrios Papadopoulos <dpa...@chromium.org>
              Gerrit-Attention: Fred Shih <ff...@chromium.org>
              Gerrit-Comment-Date: Wed, 21 Jan 2026 04:12:26 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy
              Reply all
              Reply to author
              Forward
              0 new messages