Refactor Geolocation connection and update logic [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Sep 10, 2025, 6:50:12 PM (13 days ago) Sep 10
to Alvin Ji, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org

AI Code Reviewer added 1 comment

File third_party/blink/renderer/core/geolocation/geolocation.h
Line 187, Patchset 2 (Latest): bool EnsureGeolocationConnection(GeoNotifier*);
AI Code Reviewer . unresolved

For clarity, please add the parameter name to the declaration of `EnsureGeolocationConnection`. The role of the `GeoNotifier*` parameter is not obvious from the function name and type alone. (Blink Style Guide: Naming - May leave obvious parameter names out of function declarations)

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
Gerrit-Change-Number: 6936723
Gerrit-PatchSet: 2
Gerrit-Owner: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Comment-Date: Wed, 10 Sep 2025 22:50:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Alvin Ji (Gerrit)

unread,
Sep 10, 2025, 7:43:26 PM (13 days ago) Sep 10
to AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org

Alvin Ji added 1 comment

File third_party/blink/renderer/core/geolocation/geolocation.h
Line 187, Patchset 2: bool EnsureGeolocationConnection(GeoNotifier*);
AI Code Reviewer . resolved

For clarity, please add the parameter name to the declaration of `EnsureGeolocationConnection`. The role of the `GeoNotifier*` parameter is not obvious from the function name and type alone. (Blink Style Guide: Naming - May leave obvious parameter names out of function declarations)

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Alvin Ji

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
Gerrit-Change-Number: 6936723
Gerrit-PatchSet: 5
Gerrit-Owner: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Comment-Date: Wed, 10 Sep 2025 23:43:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Alvin Ji (Gerrit)

unread,
Sep 10, 2025, 7:43:44 PM (13 days ago) Sep 10
to Matt Reynolds, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Matt Reynolds

Alvin Ji added 1 comment

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Alvin Ji . resolved

Hi Matt,
PTAL and thanks!
Alvin

Open in Gerrit

Related details

Attention is currently required from:
  • Matt Reynolds
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
Gerrit-Change-Number: 6936723
Gerrit-PatchSet: 5
Gerrit-Owner: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
Gerrit-Reviewer: Matt Reynolds <mattre...@chromium.org>
Gerrit-Attention: Matt Reynolds <mattre...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Sep 2025 23:43:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Matt Reynolds (Gerrit)

unread,
Sep 15, 2025, 7:53:37 PM (8 days ago) Sep 15
to Alvin Ji, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Alvin Ji

Matt Reynolds added 1 comment

File third_party/blink/renderer/core/geolocation/geolocation.cc
Line 505, Patchset 5 (Parent): !updating_) {
Matt Reynolds . unresolved

Previously, UpdateGeolocationConnection would close the mojo pipe if it was no longer needed. Now I think the pipe is left open even when we stop calling QueryNextPosition. Is that intended?

Open in Gerrit

Related details

Attention is currently required from:
  • Alvin Ji
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
    Gerrit-Change-Number: 6936723
    Gerrit-PatchSet: 5
    Gerrit-Owner: Alvin Ji <alv...@chromium.org>
    Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
    Gerrit-Reviewer: Matt Reynolds <mattre...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Alvin Ji <alv...@chromium.org>
    Gerrit-Comment-Date: Mon, 15 Sep 2025 23:53:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alvin Ji (Gerrit)

    unread,
    Sep 15, 2025, 9:04:42 PM (8 days ago) Sep 15
    to Matt Reynolds, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
    Attention needed from Matt Reynolds

    Alvin Ji added 1 comment

    File third_party/blink/renderer/core/geolocation/geolocation.cc
    Matt Reynolds . unresolved

    Previously, UpdateGeolocationConnection would close the mojo pipe if it was no longer needed. Now I think the pipe is left open even when we stop calling QueryNextPosition. Is that intended?

    Alvin Ji

    With this change, the pipe disconnecting path now is:
    `OnPositionUpdated` -> `PositionChanged` -> `MakeSuccessCallbacks` -> if not `HasListeners` -> `StopUpdating` -> `ResetGeolocationConnection` and pipe is reset here.

    I think this is probably not the best way doing it. We can also move the `HasListeners` check in the end of `OnPositionUpdated` like:
    ```
    void Geolocation::OnPositionUpdated(){
    ...
    if (HasLiseners()) {
    // The in-flight query is now complete.
    updating_ = false;
    QueryNextPosition();
    } else {
    StopUpdating();
    }
    }
    ```
    What do you think?
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Matt Reynolds
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
    Gerrit-Change-Number: 6936723
    Gerrit-PatchSet: 5
    Gerrit-Owner: Alvin Ji <alv...@chromium.org>
    Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
    Gerrit-Reviewer: Matt Reynolds <mattre...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Matt Reynolds <mattre...@chromium.org>
    Gerrit-Comment-Date: Tue, 16 Sep 2025 01:04:33 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Matt Reynolds <mattre...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Matt Reynolds (Gerrit)

    unread,
    Sep 16, 2025, 6:23:41 PM (7 days ago) Sep 16
    to Alvin Ji, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
    Attention needed from Alvin Ji

    Matt Reynolds added 3 comments

    File third_party/blink/renderer/core/geolocation/geolocation.cc
    Matt Reynolds . unresolved

    Previously, UpdateGeolocationConnection would close the mojo pipe if it was no longer needed. Now I think the pipe is left open even when we stop calling QueryNextPosition. Is that intended?

    Alvin Ji

    With this change, the pipe disconnecting path now is:
    `OnPositionUpdated` -> `PositionChanged` -> `MakeSuccessCallbacks` -> if not `HasListeners` -> `StopUpdating` -> `ResetGeolocationConnection` and pipe is reset here.

    I think this is probably not the best way doing it. We can also move the `HasListeners` check in the end of `OnPositionUpdated` like:
    ```
    void Geolocation::OnPositionUpdated(){
    ...
    if (HasLiseners()) {
    // The in-flight query is now complete.
    updating_ = false;
    QueryNextPosition();
    } else {
    StopUpdating();
    }
    }
    ```
    What do you think?
    Matt Reynolds

    I'm having trouble following the chain of logic to convince myself that we're correctly resetting the pipe in all the same cases where it was previously reset. I think moving the HasListeners check to inside OnPositionUpdated (and anywhere else where HasListeners might be false) should make this clearer.

    Line 584, Patchset 5 (Latest): if (GetPage() && GetPage()->IsPageVisible()) {
    Matt Reynolds . unresolved

    Should this also check HasListeners?

    Line 595, Patchset 5 (Latest): StopUpdating();
    Matt Reynolds . unresolved

    nit: Let's make this an early exit to reduce nesting.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alvin Ji
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
    Gerrit-Change-Number: 6936723
    Gerrit-PatchSet: 5
    Gerrit-Owner: Alvin Ji <alv...@chromium.org>
    Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
    Gerrit-Reviewer: Matt Reynolds <mattre...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Alvin Ji <alv...@chromium.org>
    Gerrit-Comment-Date: Tue, 16 Sep 2025 22:23:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alvin Ji <alv...@chromium.org>
    Comment-In-Reply-To: Matt Reynolds <mattre...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alvin Ji (Gerrit)

    unread,
    Sep 18, 2025, 8:28:11 PM (5 days ago) Sep 18
    to Matt Reynolds, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
    Attention needed from Matt Reynolds

    Alvin Ji added 4 comments

    Patchset-level comments
    File-level comment, Patchset 13 (Latest):
    Alvin Ji . resolved

    Hi Matt,
    PTAL at latest patchset, thanks!
    Alvin

    File third_party/blink/renderer/core/geolocation/geolocation.cc
    Matt Reynolds . resolved

    Previously, UpdateGeolocationConnection would close the mojo pipe if it was no longer needed. Now I think the pipe is left open even when we stop calling QueryNextPosition. Is that intended?

    Alvin Ji

    With this change, the pipe disconnecting path now is:
    `OnPositionUpdated` -> `PositionChanged` -> `MakeSuccessCallbacks` -> if not `HasListeners` -> `StopUpdating` -> `ResetGeolocationConnection` and pipe is reset here.

    I think this is probably not the best way doing it. We can also move the `HasListeners` check in the end of `OnPositionUpdated` like:
    ```
    void Geolocation::OnPositionUpdated(){
    ...
    if (HasLiseners()) {
    // The in-flight query is now complete.
    updating_ = false;
    QueryNextPosition();
    } else {
    StopUpdating();
    }
    }
    ```
    What do you think?
    Matt Reynolds

    I'm having trouble following the chain of logic to convince myself that we're correctly resetting the pipe in all the same cases where it was previously reset. I think moving the HasListeners check to inside OnPositionUpdated (and anywhere else where HasListeners might be false) should make this clearer.

    Alvin Ji

    Thanks for review this, I have the geolocation.cc refactored further, now we don't need to pass notifier for `StartUpdating` (it is also renamed `UpdateGeolocationState`), please review latest patchset see if it make more sense now. Thanks!

    Line 584, Patchset 5: if (GetPage() && GetPage()->IsPageVisible()) {
    Matt Reynolds . resolved

    Should this also check HasListeners?

    Alvin Ji

    Done, thanks for catching this.

    Line 595, Patchset 5: StopUpdating();
    Matt Reynolds . resolved

    nit: Let's make this an early exit to reduce nesting.

    Alvin Ji

    I have this part refactored again, so we don't need to iterate notifiers for starting them.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Matt Reynolds
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
    Gerrit-Change-Number: 6936723
    Gerrit-PatchSet: 13
    Gerrit-Owner: Alvin Ji <alv...@chromium.org>
    Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
    Gerrit-Reviewer: Matt Reynolds <mattre...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Matt Reynolds <mattre...@chromium.org>
    Gerrit-Comment-Date: Fri, 19 Sep 2025 00:28:00 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Matt Reynolds <mattre...@chromium.org>
    Comment-In-Reply-To: Alvin Ji <alv...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Matt Reynolds (Gerrit)

    unread,
    Sep 23, 2025, 5:50:09 PM (10 hours ago) Sep 23
    to Alvin Ji, Code Review Nudger, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
    Attention needed from Alvin Ji

    Matt Reynolds added 2 comments

    File third_party/blink/renderer/core/geolocation/geolocation.cc
    Line 543, Patchset 13 (Latest): if (!GetExecutionContext()) {
    Matt Reynolds . unresolved

    It's not clear to me why we're checking for null instead of keeping the DCHECK (and maybe upgrading to a CHECK). Can you explain why this is needed? Is it now expected that OnPositionUpdated will be called when the execution context is lost?

    Line 627, Patchset 13 (Latest): bool new_enable_high_accuracy = false;
    for (auto& notifier : *one_shots_) {
    if (notifier->Options()->enableHighAccuracy()) {
    new_enable_high_accuracy = true;
    break;
    }
    }
    if (!new_enable_high_accuracy) {
    for (auto& notifier : watchers_->Notifiers()) {
    if (notifier->Options()->enableHighAccuracy()) {
    new_enable_high_accuracy = true;
    break;
    }
    }
    }
    Matt Reynolds . unresolved

    Let's use `std::ranges::any_of`

    ```
    const bool has_high_accuracy_notifier =
    std::ranges::any_of(*one_shots_,
    [](const auto& notifier) {
    return notifier->Options()->enableHighAccuracy();
    }) ||
    std::ranges::any_of(watchers_->Notifiers(),
    [](const auto& notifier) {
    return notifier->Options()->enableHighAccuracy();
    });
    ```
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alvin Ji
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
      Gerrit-Change-Number: 6936723
      Gerrit-PatchSet: 13
      Gerrit-Owner: Alvin Ji <alv...@chromium.org>
      Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
      Gerrit-Reviewer: Matt Reynolds <mattre...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-Attention: Alvin Ji <alv...@chromium.org>
      Gerrit-Comment-Date: Tue, 23 Sep 2025 21:49:54 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Alvin Ji (Gerrit)

      unread,
      Sep 23, 2025, 8:43:43 PM (7 hours ago) Sep 23
      to Code Review Nudger, Matt Reynolds, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
      Attention needed from Matt Reynolds

      Alvin Ji added 3 comments

      Patchset-level comments
      File-level comment, Patchset 14 (Latest):
      Alvin Ji . resolved

      Thanks for the review, I have the CL updated and PATL again. Thanks!

      File third_party/blink/renderer/core/geolocation/geolocation.cc
      Line 543, Patchset 13: if (!GetExecutionContext()) {
      Matt Reynolds . resolved

      It's not clear to me why we're checking for null instead of keeping the DCHECK (and maybe upgrading to a CHECK). Can you explain why this is needed? Is it now expected that OnPositionUpdated will be called when the execution context is lost?

      Alvin Ji

      Thanks, as we discussed offline, I think CHECK / DCHECK execution context in asynchronous callback is probably not needed. Similar for `OnGeolocationPermissionStatusUpdated`, I also added the context check and return if it is already destroyed.

      Line 627, Patchset 13: bool new_enable_high_accuracy = false;

      for (auto& notifier : *one_shots_) {
      if (notifier->Options()->enableHighAccuracy()) {
      new_enable_high_accuracy = true;
      break;
      }
      }
      if (!new_enable_high_accuracy) {
      for (auto& notifier : watchers_->Notifiers()) {
      if (notifier->Options()->enableHighAccuracy()) {
      new_enable_high_accuracy = true;
      break;
      }
      }
      }
      Matt Reynolds . resolved

      Let's use `std::ranges::any_of`

      ```
      const bool has_high_accuracy_notifier =
      std::ranges::any_of(*one_shots_,
      [](const auto& notifier) {
      return notifier->Options()->enableHighAccuracy();
      }) ||
      std::ranges::any_of(watchers_->Notifiers(),
      [](const auto& notifier) {
      return notifier->Options()->enableHighAccuracy();
      });
      ```
      Alvin Ji

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Matt Reynolds
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
      Gerrit-Change-Number: 6936723
      Gerrit-PatchSet: 14
      Gerrit-Owner: Alvin Ji <alv...@chromium.org>
      Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
      Gerrit-Reviewer: Matt Reynolds <mattre...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-Attention: Matt Reynolds <mattre...@chromium.org>
      Gerrit-Comment-Date: Wed, 24 Sep 2025 00:43:31 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Matt Reynolds <mattre...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Alvin Ji (Gerrit)

      unread,
      Sep 23, 2025, 11:40:24 PM (4 hours ago) Sep 23
      to Code Review Nudger, Matt Reynolds, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
      Attention needed from Matt Reynolds

      Alvin Ji added 2 comments

      Patchset-level comments
      File-level comment, Patchset 15 (Latest):
      Alvin Ji . resolved

      Sorry, please review patchset #15, I left a comment to explain what we missed in patchset#14

      File third_party/blink/renderer/core/geolocation/geolocation.cc
      Line 637, Patchset 14: if (has_high_accuracy_notifier && !enable_high_accuracy_) {
      enable_high_accuracy_ = true;
      Alvin Ji . resolved

      If we do this we won't be able to trigger the transition from high to low accuracy but only the other way around.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Matt Reynolds
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      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: Ic3e7a43105bb48172da8b066d38c745f6bc5562d
      Gerrit-Change-Number: 6936723
      Gerrit-PatchSet: 15
      Gerrit-Owner: Alvin Ji <alv...@chromium.org>
      Gerrit-Reviewer: Alvin Ji <alv...@chromium.org>
      Gerrit-Reviewer: Matt Reynolds <mattre...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-Attention: Matt Reynolds <mattre...@chromium.org>
      Gerrit-Comment-Date: Wed, 24 Sep 2025 03:40:15 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages