[Autofill] Don't set PHONE_HOME_CITY_AND_NUMBER directly. [chromium/src : main]

1 view
Skip to first unread message

findit-for-me@appspot.gserviceaccount.com (Gerrit)

unread,
Aug 11, 2023, 2:15:49 PM8/11/23
to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Florian Leimgruber, Matthias Körber, Norge Vizcay.

This change meets the code coverage requirements.

Patch set 1:Code-Coverage +1

View Change

    To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
    Gerrit-Change-Number: 4773760
    Gerrit-PatchSet: 1
    Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
    Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
    Gerrit-Reviewer: Matthias Körber <koe...@google.com>
    Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
    Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
    Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
    Gerrit-Attention: Norge Vizcay <viz...@google.com>
    Gerrit-Attention: Matthias Körber <koe...@google.com>
    Gerrit-Comment-Date: Fri, 11 Aug 2023 14:15:41 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes

    Matthias Körber (Gerrit)

    unread,
    Aug 11, 2023, 4:02:42 PM8/11/23
    to Timofey Chudakov, browser-comp...@chromium.org, findit...@appspot.gserviceaccount.com, Florian Leimgruber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Florian Leimgruber, Norge Vizcay, Timofey Chudakov.

    View Change

    2 comments:

    • File components/autofill/core/browser/data_model/phone_number.cc:

      • Patch Set #1, Line 95: SetRawInfoWithVerificationStatus

        Should we add a test to cover the difference?

      • Patch Set #1, Line 99:

          if (type != PHONE_HOME_WHOLE_NUMBER) {
        // Only full phone numbers should be set directly. The remaining field types
        // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
        // generally doesn't represent a dialable number, it is not accessible
        // either.
        return;
        }

        I wonder if we should add a CHECK_NO_CRASH here just to make sure we are not using other types in any import logic.

    To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
    Gerrit-Change-Number: 4773760
    Gerrit-PatchSet: 1
    Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
    Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
    Gerrit-Reviewer: Matthias Körber <koe...@google.com>
    Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
    Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
    Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
    Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
    Gerrit-Attention: Norge Vizcay <viz...@google.com>
    Gerrit-Comment-Date: Fri, 11 Aug 2023 16:02:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Timofey Chudakov (Gerrit)

    unread,
    Aug 13, 2023, 3:27:53 PM8/13/23
    to browser-comp...@chromium.org, findit...@appspot.gserviceaccount.com, Florian Leimgruber, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Florian Leimgruber, Matthias Körber, Norge Vizcay.

    View Change

    2 comments:

    • File components/autofill/core/browser/data_model/phone_number.cc:

      • Done

      • Patch Set #1, Line 99:

          if (type != PHONE_HOME_WHOLE_NUMBER) {
        // Only full phone numbers should be set directly. The remaining field types
        // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
        // generally doesn't represent a dialable number, it is not accessible
        // either.
        return;
        }

      • I wonder if we should add a CHECK_NO_CRASH here just to make sure we are not using other types in an […]

        I don't quite understand what exactly can potentially crash?

    To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
    Gerrit-Change-Number: 4773760
    Gerrit-PatchSet: 1
    Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
    Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
    Gerrit-Reviewer: Matthias Körber <koe...@google.com>
    Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
    Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
    Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
    Gerrit-Attention: Norge Vizcay <viz...@google.com>
    Gerrit-Attention: Matthias Körber <koe...@google.com>
    Gerrit-Comment-Date: Sun, 13 Aug 2023 15:27:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Matthias Körber <koe...@google.com>

    findit-for-me@appspot.gserviceaccount.com (Gerrit)

    unread,
    Aug 13, 2023, 4:20:26 PM8/13/23
    to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Florian Leimgruber, Matthias Körber, Norge Vizcay, Timofey Chudakov.

    This change meets the code coverage requirements.

    Patch set 2:Code-Coverage +1

    View Change

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 2
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Sun, 13 Aug 2023 16:20:13 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes

      Florian Leimgruber (Gerrit)

      unread,
      Aug 14, 2023, 7:49:56 AM8/14/23
      to Timofey Chudakov, browser-comp...@chromium.org, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Matthias Körber, Norge Vizcay, Timofey Chudakov.

      Patch set 2:Code-Review +1

      View Change

      3 comments:

        •   if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

        •  As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.

        • I think this part of the comment can be removed now (I added it to explain why PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX is not part of the if, even though PHONE_HOME_CITY_AND_NUMBER is).

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 2
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Mon, 14 Aug 2023 07:49:47 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Timofey Chudakov <tchu...@google.com>
      Comment-In-Reply-To: Matthias Körber <koe...@google.com>

      Norge Vizcay (Gerrit)

      unread,
      Aug 14, 2023, 8:59:01 AM8/14/23
      to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Matthias Körber, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Matthias Körber, Timofey Chudakov.

      View Change

      2 comments:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

        • I think Matthias wants to make sure that in case some logic relies on `SetRawInfo(PHONE_HOME_CITY_AN […]

          Florian, one option might be missing. From what I see on the import test tool example `chrome/test/data/autofill/profiles/profiles.json` we suggest `PHONE_HOME_CITY_AND_NUMBER` can be used, and the tool uses `SetRawInfoWithVerificationStatus` directly. We probably need to update the example.

          That said, +1 to Matthias' suggestion. We could add something like
          `CHECK(type != PHONE_HOME_CITY_AND_NUMBER) << "Invalid set operation for phone number"` to catch such cases.

      • File components/autofill/core/browser/data_model/phone_number_unittest.cc:

        • Patch Set #2, Line 506:

          PHONE_HOME_NUMBER, PHONE_HOME_CITY_CODE, PHONE_HOME_COUNTRY_CODE,
          PHONE_HOME_CITY_AND_NUMBER, PHONE_HOME_EXTENSION,
          PHONE_HOME_CITY_CODE_WITH_TRUNK_PREFIX,
          PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX,
          PHONE_HOME_NUMBER_PREFIX, PHONE_HOME_NUMBER_SUFFIX

          Instead of listing them directly, how about listing them through `PhoneNumber::GetSupportedTypes` and skipping the one that are not interesting to you.

          It would avoid potential errors when new types are introduced.

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 2
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Mon, 14 Aug 2023 08:58:52 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>

      Florian Leimgruber (Gerrit)

      unread,
      Aug 14, 2023, 9:03:50 AM8/14/23
      to Timofey Chudakov, browser-comp...@chromium.org, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Matthias Körber, Timofey Chudakov.

      Patch set 2:-Code-Review

      The change is no longer submittable: Code-Owners and Code-Review are unsatisfied now.

      View Change

      3 comments:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

        • Florian, one option might be missing

          Good point, I missed that. Thanks for noticing! Yes, that should be updated.

          CHECK(type != PHONE_HOME_CITY_AND_NUMBER)

          The problem with CHECK() is that is will crash the browser - we should avoid that.

      • File components/autofill/core/browser/data_model/phone_number_unittest.cc:

        • Patch Set #2, Line 506:

          PHONE_HOME_NUMBER, PHONE_HOME_CITY_CODE, PHONE_HOME_COUNTRY_CODE,
          PHONE_HOME_CITY_AND_NUMBER, PHONE_HOME_EXTENSION,
          PHONE_HOME_CITY_CODE_WITH_TRUNK_PREFIX,
          PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX,
          PHONE_HOME_NUMBER_PREFIX, PHONE_HOME_NUMBER_SUFFIX

        • Instead of listing them directly, how about listing them through `PhoneNumber::GetSupportedTypes` an […]

          +1

        • Patch Set #2, Line 513: ASSERT_TRUE(phone_number.GetRawInfo(type).empty());

          `EXPECT_TRUE(!phone_number.HasRawInfo(type))`

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 2
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Mon, 14 Aug 2023 09:03:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>
      Comment-In-Reply-To: Timofey Chudakov <tchu...@google.com>
      Comment-In-Reply-To: Norge Vizcay <viz...@google.com>
      Comment-In-Reply-To: Matthias Körber <koe...@google.com>

      Florian Leimgruber (Gerrit)

      unread,
      Aug 14, 2023, 9:09:48 AM8/14/23
      to Timofey Chudakov, browser-comp...@chromium.org, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Matthias Körber, Norge Vizcay, Timofey Chudakov.

      View Change

      1 comment:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 2
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Mon, 14 Aug 2023 09:09:37 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No

      Norge Vizcay (Gerrit)

      unread,
      Aug 14, 2023, 9:16:44 AM8/14/23
      to Timofey Chudakov, browser-comp...@chromium.org, Maxim Sheshukov, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Matthias Körber, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Timofey Chudakov.

      View Change

      1 comment:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

          > Florian, one option might be missing […]

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 2
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Mon, 14 Aug 2023 09:16:34 +0000

      Timofey Chudakov (Gerrit)

      unread,
      Aug 14, 2023, 9:24:18 AM8/14/23
      to browser-comp...@chromium.org, Maxim Sheshukov, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Norge Vizcay.

      View Change

      2 comments:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

        • `CHECK`s are advised when asserting an invariant [1], which is probably the case here? […]

          I don't need to land this asap, this can wait a long time. Although this change is helpful, it doesn't affect I18n.

      • File components/autofill/core/browser/data_model/phone_number.cc:

        •  As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX


        • // generally doesn't represent a dialable number, it is not accessible
          // either.

        • I think this part of the comment can be removed now (I added it to explain why PHONE_HOME_CITY_AND_N […]

          Done

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 2
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Mon, 14 Aug 2023 09:24:04 +0000

      Timofey Chudakov (Gerrit)

      unread,
      Aug 29, 2023, 12:08:58 PM8/29/23
      to browser-comp...@chromium.org, Maxim Sheshukov, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Norge Vizcay.

      View Change

      2 comments:

      • File components/autofill/core/browser/data_model/phone_number_unittest.cc:

        • Patch Set #2, Line 506:

          PHONE_HOME_NUMBER, PHONE_HOME_CITY_CODE, PHONE_HOME_COUNTRY_CODE,
          PHONE_HOME_CITY_AND_NUMBER, PHONE_HOME_EXTENSION,
          PHONE_HOME_CITY_CODE_WITH_TRUNK_PREFIX,
          PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX,
          PHONE_HOME_NUMBER_PREFIX, PHONE_HOME_NUMBER_SUFFIX

        • +1

          That method is protected. After discussing online, I created a bug to investigate if that method can be made public.

        • `EXPECT_TRUE(!phone_number. […]

          Done

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 8
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Tue, 29 Aug 2023 12:08:39 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>
      Comment-In-Reply-To: Norge Vizcay <viz...@google.com>

      Maxim Sheshukov (Gerrit)

      unread,
      Aug 29, 2023, 12:13:26 PM8/29/23
      to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Matthias Körber, Norge Vizcay, Timofey Chudakov.

      View Change

      2 comments:

      • File chrome/test/data/autofill/profiles/profiles.json:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

        • I don't need to land this asap, this can wait a long time. […]

          Thanks for letting me know. I'll update profiles.

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 8
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Tue, 29 Aug 2023 12:12:57 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>

      Florian Leimgruber (Gerrit)

      unread,
      Aug 29, 2023, 12:15:35 PM8/29/23
      to Timofey Chudakov, browser-comp...@chromium.org, Maxim Sheshukov, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Matthias Körber, Maxim Sheshukov, Norge Vizcay, Timofey Chudakov.

      View Change

      2 comments:

      • File chrome/test/data/autofill/profiles/profiles.json:

        • This is an international phone number now. […]

          PHONE_HOME_WHOLE_NUMBER is just "everything we've stored" - which is not necessarily an international number. In the past, we tried changing the code to make it an international number. But users weren't happy about this, since many people prefer nationally formatted numbers. So I think it's reasonable to keep this nationally formatted.

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 8
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Tue, 29 Aug 2023 12:15:17 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>
      Comment-In-Reply-To: Timofey Chudakov <tchu...@google.com>
      Comment-In-Reply-To: Norge Vizcay <viz...@google.com>
      Comment-In-Reply-To: Maxim Sheshukov <maximsh...@google.com>
      Comment-In-Reply-To: Matthias Körber <koe...@google.com>

      Maxim Sheshukov (Gerrit)

      unread,
      Aug 29, 2023, 12:22:46 PM8/29/23
      to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Matthias Körber, Norge Vizcay, Timofey Chudakov.

      View Change

      1 comment:

      • File chrome/test/data/autofill/profiles/profiles.json:

        • PHONE_HOME_WHOLE_NUMBER is just "everything we've stored" - which is not necessarily an internationa […]

          Acknowledged

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 8
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Tue, 29 Aug 2023 12:22:36 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>
      Comment-In-Reply-To: Maxim Sheshukov <maximsh...@google.com>

      Timofey Chudakov (Gerrit)

      unread,
      Aug 29, 2023, 1:08:04 PM8/29/23
      to browser-comp...@chromium.org, Maxim Sheshukov, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Norge Vizcay.

      View Change

      1 comment:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

        • > Thanks for letting me know. I'll update profiles. […]

          Unfortunately it's not possible, cause we're going to need the fact that it doesn't set that fact while calling this function with `PHONE_HOME_CITY_AND_NUMBER`.

          This will be the case with I18n: we'll pass all supported fields to the platform code and receive all fields back, so `PHONE_HOME_CITY_AND_NUMBER` will be passed to this function.

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 8
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Tue, 29 Aug 2023 13:07:51 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>
      Comment-In-Reply-To: Timofey Chudakov <tchu...@google.com>
      Comment-In-Reply-To: Norge Vizcay <viz...@google.com>
      Comment-In-Reply-To: Matthias Körber <koe...@google.com>

      Florian Leimgruber (Gerrit)

      unread,
      Aug 30, 2023, 8:35:31 AM8/30/23
      to Timofey Chudakov, browser-comp...@chromium.org, Maxim Sheshukov, findit...@appspot.gserviceaccount.com, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Matthias Körber, Maxim Sheshukov, Norge Vizcay, Timofey Chudakov.

      View Change

      1 comment:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 8
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Matthias Körber <koe...@google.com>
      Gerrit-Comment-Date: Wed, 30 Aug 2023 08:35:16 +0000

      Matthias Körber (Gerrit)

      unread,
      Aug 30, 2023, 1:23:46 PM8/30/23
      to Timofey Chudakov, browser-comp...@chromium.org, Maxim Sheshukov, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Maxim Sheshukov, Norge Vizcay, Timofey Chudakov.

      View Change

      1 comment:

      • File components/autofill/core/browser/data_model/phone_number.cc:

        • Patch Set #1, Line 99:

            if (type != PHONE_HOME_WHOLE_NUMBER) {
          // Only full phone numbers should be set directly. The remaining field types
          // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
          // generally doesn't represent a dialable number, it is not accessible
          // either.
          return;
          }

        • > we'll pass all supported fields to the platform code […]

          Exactly, we do not want to make an implementation mistake and set a derived type.

      To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
      Gerrit-Change-Number: 4773760
      Gerrit-PatchSet: 8
      Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
      Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
      Gerrit-Reviewer: Matthias Körber <koe...@google.com>
      Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
      Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Norge Vizcay <viz...@google.com>
      Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
      Gerrit-Comment-Date: Wed, 30 Aug 2023 13:23:26 +0000

      findit-for-me@appspot.gserviceaccount.com (Gerrit)

      unread,
      Sep 4, 2023, 6:33:10 PM9/4/23
      to Timofey Chudakov, browser-comp...@chromium.org, Maxim Sheshukov, Florian Leimgruber, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Florian Leimgruber, Maxim Sheshukov, Norge Vizcay, Timofey Chudakov.

      This change meets the code coverage requirements.

      Patch set 12:Code-Coverage +1

      View Change

        To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
        Gerrit-Change-Number: 4773760
        Gerrit-PatchSet: 12
        Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Matthias Körber <koe...@google.com>
        Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
        Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
        Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
        Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
        Gerrit-Attention: Norge Vizcay <viz...@google.com>
        Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Comment-Date: Mon, 04 Sep 2023 18:32:53 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes

        Timofey Chudakov (Gerrit)

        unread,
        Sep 4, 2023, 6:39:53 PM9/4/23
        to browser-comp...@chromium.org, findit...@appspot.gserviceaccount.com, Maxim Sheshukov, Florian Leimgruber, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Norge Vizcay.

        Patch set 12:Commit-Queue +1

        View Change

        1 comment:

        • File components/autofill/core/browser/data_model/phone_number.cc:

          • Patch Set #1, Line 99:

              if (type != PHONE_HOME_WHOLE_NUMBER) {
            // Only full phone numbers should be set directly. The remaining field types
            // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
            // generally doesn't represent a dialable number, it is not accessible
            // either.
            return;
            }

          • Exactly, we do not want to make an implementation mistake and set a derived type.

            Ok, I ended up forwarding only storable fields to the platform code. Please take a look now 😊

        To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
        Gerrit-Change-Number: 4773760
        Gerrit-PatchSet: 12
        Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Matthias Körber <koe...@google.com>
        Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
        Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
        Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
        Gerrit-Attention: Norge Vizcay <viz...@google.com>
        Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Matthias Körber <koe...@google.com>
        Gerrit-Comment-Date: Mon, 04 Sep 2023 18:39:43 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes

        Florian Leimgruber (Gerrit)

        unread,
        Sep 5, 2023, 10:12:57 AM9/5/23
        to Timofey Chudakov, browser-comp...@chromium.org, findit...@appspot.gserviceaccount.com, Maxim Sheshukov, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Matthias Körber, Maxim Sheshukov, Norge Vizcay, Timofey Chudakov.

        Patch set 12:Code-Review +1

        View Change

        6 comments:

        • Patchset:

        • File chrome/test/data/autofill/profiles/profiles.json:

          • Acknowledged

            (just an FYI) I talked with Dominic about this issue yesterday and we concluded that "whole number" should eventually become "international number". We should ultimately improve our prediction or filling logic to decide between "whole number" and "city and number". (At the moment, local heuristics always classify single field phone number inputs as "whole number")

            For now, I think the best option is keeping this a nationally formatted number, until we fixed the prediction/filling logic. Otherwise we might break the experience for manual testers.

        • File components/autofill/core/browser/data_model/phone_number.cc:

        • File components/autofill/core/browser/data_model/phone_number_unittest.cc:

          • Patch Set #2, Line 506:

            PHONE_HOME_NUMBER, PHONE_HOME_CITY_CODE, PHONE_HOME_COUNTRY_CODE,
            PHONE_HOME_CITY_AND_NUMBER, PHONE_HOME_EXTENSION,
            PHONE_HOME_CITY_CODE_WITH_TRUNK_PREFIX,
            PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX,
            PHONE_HOME_NUMBER_PREFIX, PHONE_HOME_NUMBER_SUFFIX

          • That method is protected. […]

            Another alternative could be something like this:
            ```
            ServerFieldTypeSet types;
            profile.GetSupportedTypes(&types);
            base::EraseIf(types, [](ServerFieldType type) {
            return AutofillType(type).group() != FieldTypeGroup::kPhone ||
            base::Contains(AutofillTable::GetStoredTypesForAutofillProfile(), type);
            });
            (at this point `types` only contains derived phone number types)
            base::ranges::for_each(types, ...);
            ```
        • File components/autofill/core/browser/data_model/phone_number_unittest.cc:

        To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
        Gerrit-Change-Number: 4773760
        Gerrit-PatchSet: 12
        Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Matthias Körber <koe...@google.com>
        Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
        Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
        Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
        Gerrit-Attention: Norge Vizcay <viz...@google.com>
        Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Matthias Körber <koe...@google.com>
        Gerrit-Comment-Date: Tue, 05 Sep 2023 10:12:45 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>
        Comment-In-Reply-To: Timofey Chudakov <tchu...@google.com>
        Comment-In-Reply-To: Norge Vizcay <viz...@google.com>
        Comment-In-Reply-To: Maxim Sheshukov <maximsh...@google.com>

        Norge Vizcay (Gerrit)

        unread,
        Sep 5, 2023, 10:26:36 AM9/5/23
        to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Maxim Sheshukov, Matthias Körber, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Timofey Chudakov.

        View Change

        1 comment:

        • File components/autofill/core/browser/data_model/phone_number.cc:

          • Patch Set #1, Line 99:

              if (type != PHONE_HOME_WHOLE_NUMBER) {
            // Only full phone numbers should be set directly. The remaining field types
            // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
            // generally doesn't represent a dialable number, it is not accessible
            // either.
            return;
            }

          • Ok, I ended up forwarding only storable fields to the platform code. […]

            Regarding forwarding only derived types. Although I agree that we in principle would only want to forward storable fields, I think there are some exceptions.

            For example, ADDRESS_LINE types are currently accounted as derived (not storable), but their `set` operation has an impact on the storable field (e.g. ADDRESS_HOME_STREET_ADDRESS). Moreover, iOS seems to show address lines as fields on their address editors and forward those back.

            I can't think of other exceptions, so maybe we should consider ADDRESS_LINE(s) as storable types?

        To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
        Gerrit-Change-Number: 4773760
        Gerrit-PatchSet: 12
        Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Matthias Körber <koe...@google.com>
        Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
        Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
        Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
        Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
        Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Matthias Körber <koe...@google.com>
        Gerrit-Comment-Date: Tue, 05 Sep 2023 10:26:25 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>
        Comment-In-Reply-To: Timofey Chudakov <tchu...@google.com>
        Comment-In-Reply-To: Norge Vizcay <viz...@google.com>
        Comment-In-Reply-To: Matthias Körber <koe...@google.com>

        Matthias Körber (Gerrit)

        unread,
        Sep 5, 2023, 2:14:31 PM9/5/23
        to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Maxim Sheshukov, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Florian Leimgruber, Maxim Sheshukov, Norge Vizcay, Timofey Chudakov.

        View Change

        1 comment:

        • File components/autofill/core/browser/data_model/phone_number.cc:

          • Patch Set #1, Line 99:

              if (type != PHONE_HOME_WHOLE_NUMBER) {
            // Only full phone numbers should be set directly. The remaining field types
            // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
            // generally doesn't represent a dialable number, it is not accessible
            // either.
            return;
            }

          • Regarding forwarding only derived types. […]

            middle name initial can also be storable if there is no middle name yet.

        To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
        Gerrit-Change-Number: 4773760
        Gerrit-PatchSet: 12
        Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Matthias Körber <koe...@google.com>
        Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
        Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
        Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
        Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
        Gerrit-Attention: Norge Vizcay <viz...@google.com>
        Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Comment-Date: Tue, 05 Sep 2023 14:14:19 +0000

        Timofey Chudakov (Gerrit)

        unread,
        Sep 6, 2023, 8:33:48 AM9/6/23
        to browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Maxim Sheshukov, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Norge Vizcay.

        View Change

        5 comments:

        • File chrome/test/data/autofill/profiles/profiles.json:

          • (just an FYI) I talked with Dominic about this issue yesterday and we concluded that "whole number" […]

            Acknowledged

        • File components/autofill/core/browser/data_model/phone_number.cc:

          • Patch Set #1, Line 99:

              if (type != PHONE_HOME_WHOLE_NUMBER) {
            // Only full phone numbers should be set directly. The remaining field types
            // are read-only. As PHONE_HOME_CITY_AND_NUMBER_WITHOUT_TRUNK_PREFIX
            // generally doesn't represent a dialable number, it is not accessible
            // either.
            return;
            }

          • middle name initial can also be storable if there is no middle name yet.

            Ack regarding the storable types. IIUC IOS should get rid of ADDRESS_LINE fields in the nearest future.

            I would discuss this separately cause this has little to do with this CL.

        • File components/autofill/core/browser/data_model/phone_number.cc:

          • Done

        • File components/autofill/core/browser/data_model/phone_number_unittest.cc:

          • Done

        To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
        Gerrit-Change-Number: 4773760
        Gerrit-PatchSet: 12
        Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
        Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
        Gerrit-Reviewer: Matthias Körber <koe...@google.com>
        Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
        Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
        Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
        Gerrit-Attention: Norge Vizcay <viz...@google.com>
        Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
        Gerrit-Attention: Matthias Körber <koe...@google.com>
        Gerrit-Comment-Date: Wed, 06 Sep 2023 08:33:38 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Florian Leimgruber <fleim...@google.com>
        Comment-In-Reply-To: Timofey Chudakov <tchu...@google.com>
        Comment-In-Reply-To: Norge Vizcay <viz...@google.com>

        Timofey Chudakov (Gerrit)

        unread,
        Sep 6, 2023, 8:34:00 AM9/6/23
        to browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Maxim Sheshukov, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Norge Vizcay.

        Patch set 13:Commit-Queue +2

        View Change

          To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
          Gerrit-Change-Number: 4773760
          Gerrit-PatchSet: 13
          Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
          Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
          Gerrit-Reviewer: Matthias Körber <koe...@google.com>
          Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
          Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
          Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
          Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
          Gerrit-Attention: Norge Vizcay <viz...@google.com>
          Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
          Gerrit-Attention: Matthias Körber <koe...@google.com>
          Gerrit-Comment-Date: Wed, 06 Sep 2023 08:33:46 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes

          Timofey Chudakov (Gerrit)

          unread,
          Sep 6, 2023, 9:54:03 AM9/6/23
          to browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Maxim Sheshukov, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

          Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Norge Vizcay, Timofey Chudakov.

          Patch set 14:Commit-Queue +2

          View Change

            To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
            Gerrit-Change-Number: 4773760
            Gerrit-PatchSet: 14
            Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
            Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
            Gerrit-Reviewer: Matthias Körber <koe...@google.com>
            Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
            Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
            Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
            Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
            Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
            Gerrit-Attention: Norge Vizcay <viz...@google.com>
            Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
            Gerrit-Attention: Matthias Körber <koe...@google.com>
            Gerrit-Comment-Date: Wed, 06 Sep 2023 09:53:50 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes

            findit-for-me@appspot.gserviceaccount.com (Gerrit)

            unread,
            Sep 6, 2023, 10:58:30 AM9/6/23
            to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, Maxim Sheshukov, Matthias Körber, Norge Vizcay, Chromium LUCI CQ, chromium...@chromium.org

            Attention is currently required from: Florian Leimgruber, Matthias Körber, Maxim Sheshukov, Norge Vizcay, Timofey Chudakov.

            This change meets the code coverage requirements.

            Patch set 14:Code-Coverage +1

            View Change

              To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
              Gerrit-Change-Number: 4773760
              Gerrit-PatchSet: 14
              Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
              Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
              Gerrit-Reviewer: Matthias Körber <koe...@google.com>
              Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
              Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
              Gerrit-CC: Maxim Sheshukov <maximsh...@google.com>
              Gerrit-Attention: Florian Leimgruber <fleim...@google.com>
              Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
              Gerrit-Attention: Norge Vizcay <viz...@google.com>
              Gerrit-Attention: Maxim Sheshukov <maximsh...@google.com>
              Gerrit-Attention: Matthias Körber <koe...@google.com>
              Gerrit-Comment-Date: Wed, 06 Sep 2023 10:58:12 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes

              Chromium LUCI CQ (Gerrit)

              unread,
              Sep 6, 2023, 11:01:19 AM9/6/23
              to Timofey Chudakov, browser-comp...@chromium.org, Florian Leimgruber, findit...@appspot.gserviceaccount.com, Maxim Sheshukov, Matthias Körber, Norge Vizcay, chromium...@chromium.org

              Chromium LUCI CQ submitted this change.

              View Change



              12 is the latest approved patch-set.
              The change was submitted with unreviewed changes in the following files:

              ```
              The name of the file: components/autofill/core/browser/data_model/phone_number.cc
              Insertions: 4, Deletions: 5.

              The diff is too large to show. Please review the diff.
              ```
              ```
              The name of the file: components/autofill/core/browser/data_model/phone_number_unittest.cc
              Insertions: 13, Deletions: 12.

              The diff is too large to show. Please review the diff.
              ```

              Approvals: findit...@appspot.gserviceaccount.com: Ok Florian Leimgruber: Looks good to me Timofey Chudakov: Commit
              [Autofill] Don't set PHONE_HOME_CITY_AND_NUMBER directly.

              AutofillProfile::GetRawInfo(PHONE_HOME_CITY_AND_NUMBER) always returns
              empty string. This is inconsistent with how SetRawInfo works:
              SetRawInfo handles PHONE_HOME_CITY_AND_NUMBER as a stored type
              and allows settings it.

              This CL removes this inconsistency.

              Bug: 1441904
              Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
              Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4773760
              Reviewed-by: Florian Leimgruber <fleim...@google.com>
              Commit-Queue: Timofey Chudakov <tchu...@google.com>
              Code-Coverage: findit...@appspot.gserviceaccount.com <findit...@appspot.gserviceaccount.com>
              Cr-Commit-Position: refs/heads/main@{#1192952}
              ---
              M chrome/test/data/autofill/profiles/profiles.json
              M components/autofill/core/browser/data_model/phone_number.cc
              M components/autofill/core/browser/data_model/phone_number_unittest.cc
              3 files changed, 26 insertions(+), 7 deletions(-)


              To view, visit change 4773760. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-MessageType: merged
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: Ie8118e4b1b58f5a9299e85dd0d3191a4a39f77b0
              Gerrit-Change-Number: 4773760
              Gerrit-PatchSet: 15
              Gerrit-Owner: Timofey Chudakov <tchu...@google.com>
              Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
              Gerrit-Reviewer: Florian Leimgruber <fleim...@google.com>
              Gerrit-Reviewer: Matthias Körber <koe...@google.com>
              Gerrit-Reviewer: Norge Vizcay <viz...@google.com>
              Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
              Reply all
              Reply to author
              Forward
              0 new messages