Extensions: Implement ActorPolicyChecker::GlicApiCanActOnWeb() [chromium/src : main]

0 views
Skip to first unread message

Yuheng Huang (Gerrit)

unread,
Jun 15, 2026, 7:31:16 PM (10 days ago) Jun 15
to Theodore Olsauskas-Warren, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
Attention needed from Theodore Olsauskas-Warren

Yuheng Huang voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Theodore Olsauskas-Warren
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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
Gerrit-Change-Number: 7922896
Gerrit-PatchSet: 5
Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
Gerrit-Attention: Theodore Olsauskas-Warren <sau...@google.com>
Gerrit-Comment-Date: Mon, 15 Jun 2026 23:30:59 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Theodore Olsauskas-Warren (Gerrit)

unread,
Jun 16, 2026, 4:52:38 PM (9 days ago) Jun 16
to Yuheng Huang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
Attention needed from Yuheng Huang

Theodore Olsauskas-Warren added 5 comments

File chrome/browser/glic/actor/glic_actor_policy_checker.h
Line 88, Patchset 6 (Latest): bool GlicApiCanActOnWeb() const;
Theodore Olsauskas-Warren . unresolved

This name is hard to pass, and had to understand the comparison to CanActOnWeb, though I can't think of in immediately better name. We should add a comment explaining the semantics of this - e.g. "attempts to never return true when a later check might deny access".

File chrome/browser/glic/actor/glic_actor_policy_checker.cc
Line 152, Patchset 6 (Latest):bool ActuationDisabledForManagedUser(Profile& profile,
Theodore Olsauskas-Warren . unresolved

I don't think we need this, we can replace with `!ActuationEnabledForManagedUser`

Line 587, Patchset 6 (Latest): // TODO: Retrieve enterprise account tier information for more accurate check.
Theodore Olsauskas-Warren . unresolved

nit: needs bug

Line 588, Patchset 6 (Latest): if (enterprise_account) {
Theodore Olsauskas-Warren . unresolved

nit: could just have the IsEnterpriseAccount check here.

Line 594, Patchset 6 (Latest): if (has_management) {
Theodore Olsauskas-Warren . unresolved

nit: Could just have IsBrowserManaged check here

Open in Gerrit

Related details

Attention is currently required from:
  • Yuheng Huang
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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
    Gerrit-Change-Number: 7922896
    Gerrit-PatchSet: 6
    Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Attention: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Comment-Date: Tue, 16 Jun 2026 20:52:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yuheng Huang (Gerrit)

    unread,
    Jun 16, 2026, 5:21:55 PM (9 days ago) Jun 16
    to Theodore Olsauskas-Warren, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
    Attention needed from Theodore Olsauskas-Warren

    Yuheng Huang added 1 comment

    File chrome/browser/glic/actor/glic_actor_policy_checker.h
    Line 88, Patchset 6 (Latest): bool GlicApiCanActOnWeb() const;
    Theodore Olsauskas-Warren . unresolved

    This name is hard to pass, and had to understand the comparison to CanActOnWeb, though I can't think of in immediately better name. We should add a comment explaining the semantics of this - e.g. "attempts to never return true when a later check might deny access".

    Yuheng Huang

    I agree it is confusing to have 2 similar functions with different implementation. Do you foresee this function will replace CanActOnWeb() at some point, maybe after more testing? Or you think we have to keep both for different purposes?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Theodore Olsauskas-Warren
    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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
    Gerrit-Change-Number: 7922896
    Gerrit-PatchSet: 6
    Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Attention: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Comment-Date: Tue, 16 Jun 2026 21:21:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Theodore Olsauskas-Warren <sau...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yuheng Huang (Gerrit)

    unread,
    Jun 16, 2026, 6:03:25 PM (9 days ago) Jun 16
    to Theodore Olsauskas-Warren, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
    Attention needed from Theodore Olsauskas-Warren

    Yuheng Huang added 1 comment

    File chrome/browser/glic/actor/glic_actor_policy_checker.cc
    Line 152, Patchset 6 (Latest):bool ActuationDisabledForManagedUser(Profile& profile,
    Theodore Olsauskas-Warren . unresolved

    I don't think we need this, we can replace with `!ActuationEnabledForManagedUser`

    Yuheng Huang

    So in the current implementation, ActuationEnabledForManagedUser will return false if there's not an override from a managed device because kGlicActorEnterprisePrefDefault is set to kDisabledByDefault by default[1]. I assume most Googlers have that override so they won't be affected? What about non-Google users?

    [1]https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/chrome_features.cc;l=423;drc=71d8f4a1071b2e13b9985b249ba1ec8e4bde8ae6;bpv=1;bpt=1

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Theodore Olsauskas-Warren
    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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
    Gerrit-Change-Number: 7922896
    Gerrit-PatchSet: 6
    Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Attention: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Comment-Date: Tue, 16 Jun 2026 22:03:14 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yuheng Huang (Gerrit)

    unread,
    Jun 17, 2026, 12:46:05 PM (8 days ago) Jun 17
    to Theodore Olsauskas-Warren, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
    Attention needed from Theodore Olsauskas-Warren

    Yuheng Huang added 5 comments

    File chrome/browser/glic/actor/glic_actor_policy_checker.h
    Line 88, Patchset 6: bool GlicApiCanActOnWeb() const;
    Theodore Olsauskas-Warren . unresolved

    This name is hard to pass, and had to understand the comparison to CanActOnWeb, though I can't think of in immediately better name. We should add a comment explaining the semantics of this - e.g. "attempts to never return true when a later check might deny access".

    Yuheng Huang

    I agree it is confusing to have 2 similar functions with different implementation. Do you foresee this function will replace CanActOnWeb() at some point, maybe after more testing? Or you think we have to keep both for different purposes?

    Yuheng Huang

    Added some comments to clarify the difference of the new method.

    File chrome/browser/glic/actor/glic_actor_policy_checker.cc
    Line 152, Patchset 6:bool ActuationDisabledForManagedUser(Profile& profile,
    Theodore Olsauskas-Warren . resolved

    I don't think we need this, we can replace with `!ActuationEnabledForManagedUser`

    Yuheng Huang

    So in the current implementation, ActuationEnabledForManagedUser will return false if there's not an override from a managed device because kGlicActorEnterprisePrefDefault is set to kDisabledByDefault by default[1]. I assume most Googlers have that override so they won't be affected? What about non-Google users?

    [1]https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/chrome_features.cc;l=423;drc=71d8f4a1071b2e13b9985b249ba1ec8e4bde8ae6;bpv=1;bpt=1

    Yuheng Huang

    Done

    Line 587, Patchset 6: // TODO: Retrieve enterprise account tier information for more accurate check.
    Theodore Olsauskas-Warren . resolved

    nit: needs bug

    Yuheng Huang

    Done

    Line 588, Patchset 6: if (enterprise_account) {
    Theodore Olsauskas-Warren . resolved

    nit: could just have the IsEnterpriseAccount check here.

    Yuheng Huang

    Done

    Line 594, Patchset 6: if (has_management) {
    Theodore Olsauskas-Warren . resolved

    nit: Could just have IsBrowserManaged check here

    Yuheng Huang

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Theodore Olsauskas-Warren
    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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
    Gerrit-Change-Number: 7922896
    Gerrit-PatchSet: 8
    Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Attention: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Comment-Date: Wed, 17 Jun 2026 16:45:56 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Yuheng Huang <yuh...@chromium.org>
    Comment-In-Reply-To: Theodore Olsauskas-Warren <sau...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Theodore Olsauskas-Warren (Gerrit)

    unread,
    Jun 17, 2026, 6:25:05 PM (8 days ago) Jun 17
    to Yuheng Huang, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
    Attention needed from Rosie Yang and Yuheng Huang

    Theodore Olsauskas-Warren added 2 comments

    File chrome/browser/glic/actor/glic_actor_policy_checker.h
    Line 88, Patchset 6: bool GlicApiCanActOnWeb() const;
    Theodore Olsauskas-Warren . unresolved

    This name is hard to pass, and had to understand the comparison to CanActOnWeb, though I can't think of in immediately better name. We should add a comment explaining the semantics of this - e.g. "attempts to never return true when a later check might deny access".

    Yuheng Huang

    I agree it is confusing to have 2 similar functions with different implementation. Do you foresee this function will replace CanActOnWeb() at some point, maybe after more testing? Or you think we have to keep both for different purposes?

    Yuheng Huang

    Added some comments to clarify the difference of the new method.

    Theodore Olsauskas-Warren

    I think we will have to keep both until we can get up-to-date workspace tier information into the client, which is a problem I don't know the solution to - so atleast for sometime.

    But once we have that, conceptually yes we should be able to join them.

    File chrome/browser/glic/actor/glic_actor_policy_checker.cc
    Line 513, Patchset 9 (Latest): // If the main Glic check has been split to no longer use the
    // can_use_model_execution_features capability (see
    // kGlicEligibilitySeparateAccountCapability), then that capability must be
    // checked here. This is because actuation currently implements stricter
    // account checks.
    signin::IdentityManager* identity_manager =
    IdentityManagerFactory::GetForProfile(profile_);
    CHECK(identity_manager);
    // `account_info` is empty if the user has not signed in.
    auto can_use_model_execution_features =
    identity_manager
    ->FindExtendedAccountInfoByAccountId(
    identity_manager
    ->GetPrimaryAccountInfo(signin::ConsentLevel::kSignin)
    .account_id)
    .GetAccountCapabilities()
    .can_use_model_execution_features();
    if (can_use_model_execution_features != signin::Tribool::kTrue) {
    return log_and_return(CanActOutcome::kNo,
    CannotActReason::kAccountCapabilityIneligible);
    }
    Theodore Olsauskas-Warren . unresolved

    @ros...@google.com has a refactor in flight that might make this easier, checkout crrev.com/c/7953837

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Rosie Yang
    • Yuheng Huang
    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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
    Gerrit-Change-Number: 7922896
    Gerrit-PatchSet: 9
    Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
    Gerrit-CC: Rosie Yang <ros...@google.com>
    Gerrit-Attention: Rosie Yang <ros...@google.com>
    Gerrit-Attention: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Comment-Date: Wed, 17 Jun 2026 22:24:51 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yuheng Huang (Gerrit)

    unread,
    Jun 17, 2026, 7:10:06 PM (8 days ago) Jun 17
    to Rosie Yang, Theodore Olsauskas-Warren, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
    Attention needed from Rosie Yang and Theodore Olsauskas-Warren

    Yuheng Huang added 2 comments

    File chrome/browser/glic/actor/glic_actor_policy_checker.h
    Line 88, Patchset 6: bool GlicApiCanActOnWeb() const;
    Theodore Olsauskas-Warren . resolved

    This name is hard to pass, and had to understand the comparison to CanActOnWeb, though I can't think of in immediately better name. We should add a comment explaining the semantics of this - e.g. "attempts to never return true when a later check might deny access".

    Yuheng Huang

    I agree it is confusing to have 2 similar functions with different implementation. Do you foresee this function will replace CanActOnWeb() at some point, maybe after more testing? Or you think we have to keep both for different purposes?

    Yuheng Huang

    Added some comments to clarify the difference of the new method.

    Theodore Olsauskas-Warren

    I think we will have to keep both until we can get up-to-date workspace tier information into the client, which is a problem I don't know the solution to - so atleast for sometime.

    But once we have that, conceptually yes we should be able to join them.

    Yuheng Huang

    Acknowledged

    File chrome/browser/glic/actor/glic_actor_policy_checker.cc
    Line 513, Patchset 9 (Latest): // If the main Glic check has been split to no longer use the
    // can_use_model_execution_features capability (see
    // kGlicEligibilitySeparateAccountCapability), then that capability must be
    // checked here. This is because actuation currently implements stricter
    // account checks.
    signin::IdentityManager* identity_manager =
    IdentityManagerFactory::GetForProfile(profile_);
    CHECK(identity_manager);
    // `account_info` is empty if the user has not signed in.
    auto can_use_model_execution_features =
    identity_manager
    ->FindExtendedAccountInfoByAccountId(
    identity_manager
    ->GetPrimaryAccountInfo(signin::ConsentLevel::kSignin)
    .account_id)
    .GetAccountCapabilities()
    .can_use_model_execution_features();
    if (can_use_model_execution_features != signin::Tribool::kTrue) {
    return log_and_return(CanActOutcome::kNo,
    CannotActReason::kAccountCapabilityIneligible);
    }
    Theodore Olsauskas-Warren . unresolved

    @ros...@google.com has a refactor in flight that might make this easier, checkout crrev.com/c/7953837

    Yuheng Huang

    I think this CL could wait for the refactor one to land first.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Rosie Yang
    • Theodore Olsauskas-Warren
    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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
    Gerrit-Change-Number: 7922896
    Gerrit-PatchSet: 9
    Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
    Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
    Gerrit-CC: Rosie Yang <ros...@google.com>
    Gerrit-Attention: Rosie Yang <ros...@google.com>
    Gerrit-Attention: Theodore Olsauskas-Warren <sau...@google.com>
    Gerrit-Comment-Date: Wed, 17 Jun 2026 23:09:49 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Yuheng Huang (Gerrit)

    unread,
    Jun 18, 2026, 5:31:31 PM (7 days ago) Jun 18
    to Rosie Yang, Theodore Olsauskas-Warren, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
    Attention needed from Rosie Yang and Theodore Olsauskas-Warren

    Yuheng Huang added 1 comment

    File chrome/browser/glic/actor/glic_actor_policy_checker.cc
    Line 513, Patchset 9: // If the main Glic check has been split to no longer use the

    // can_use_model_execution_features capability (see
    // kGlicEligibilitySeparateAccountCapability), then that capability must be
    // checked here. This is because actuation currently implements stricter
    // account checks.
    signin::IdentityManager* identity_manager =
    IdentityManagerFactory::GetForProfile(profile_);
    CHECK(identity_manager);
    // `account_info` is empty if the user has not signed in.
    auto can_use_model_execution_features =
    identity_manager
    ->FindExtendedAccountInfoByAccountId(
    identity_manager
    ->GetPrimaryAccountInfo(signin::ConsentLevel::kSignin)
    .account_id)
    .GetAccountCapabilities()
    .can_use_model_execution_features();
    if (can_use_model_execution_features != signin::Tribool::kTrue) {
    return log_and_return(CanActOutcome::kNo,
    CannotActReason::kAccountCapabilityIneligible);
    }
    Theodore Olsauskas-Warren . resolved

    @ros...@google.com has a refactor in flight that might make this easier, checkout crrev.com/c/7953837

    Yuheng Huang

    I think this CL could wait for the refactor one to land first.

    Yuheng Huang

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Rosie Yang
    • Theodore Olsauskas-Warren
    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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
      Gerrit-Change-Number: 7922896
      Gerrit-PatchSet: 10
      Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
      Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
      Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
      Gerrit-CC: Rosie Yang <ros...@google.com>
      Gerrit-Attention: Rosie Yang <ros...@google.com>
      Gerrit-Attention: Theodore Olsauskas-Warren <sau...@google.com>
      Gerrit-Comment-Date: Thu, 18 Jun 2026 21:31:15 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Theodore Olsauskas-Warren (Gerrit)

      unread,
      Jun 22, 2026, 3:31:31 PM (3 days ago) Jun 22
      to Yuheng Huang, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
      Attention needed from Rosie Yang and Yuheng Huang

      Theodore Olsauskas-Warren voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Rosie Yang
      • Yuheng Huang
      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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
        Gerrit-Change-Number: 7922896
        Gerrit-PatchSet: 11
        Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
        Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
        Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
        Gerrit-CC: Rosie Yang <ros...@google.com>
        Gerrit-Attention: Yuheng Huang <yuh...@chromium.org>
        Gerrit-Attention: Rosie Yang <ros...@google.com>
        Gerrit-Comment-Date: Mon, 22 Jun 2026 19:31:13 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Fred Shih (Gerrit)

        unread,
        Jun 22, 2026, 7:44:47 PM (3 days ago) Jun 22
        to Yuheng Huang, Justin DeWitt, Theodore Olsauskas-Warren, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
        Attention needed from Justin DeWitt, Rosie Yang and Yuheng Huang

        Fred Shih voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Justin DeWitt
        • Rosie Yang
        • Yuheng Huang
        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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
        Gerrit-Change-Number: 7922896
        Gerrit-PatchSet: 11
        Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
        Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
        Gerrit-Reviewer: Justin DeWitt <dew...@chromium.org>
        Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
        Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
        Gerrit-CC: Rosie Yang <ros...@google.com>
        Gerrit-Attention: Yuheng Huang <yuh...@chromium.org>
        Gerrit-Attention: Rosie Yang <ros...@google.com>
        Gerrit-Attention: Justin DeWitt <dew...@chromium.org>
        Gerrit-Comment-Date: Mon, 22 Jun 2026 23:44:34 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Justin DeWitt (Gerrit)

        unread,
        Jun 22, 2026, 7:47:12 PM (3 days ago) Jun 22
        to Yuheng Huang, Fred Shih, Theodore Olsauskas-Warren, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
        Attention needed from Rosie Yang and Yuheng Huang

        Justin DeWitt added 1 comment

        File chrome/browser/glic/actor/glic_actor_policy_checker.h
        Line 88, Patchset 11 (Latest): // Whether the Glic API can act on Web. This is currently different than
        // CanActOnWeb() in the following ways:
        Justin DeWitt . unresolved

        why not just replace CanActOnWeb? This is just fixing a bug in our dogfooding logic which should not have consequences elsewhere.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Rosie Yang
        • Yuheng Huang
        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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
          Gerrit-Change-Number: 7922896
          Gerrit-PatchSet: 11
          Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
          Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Justin DeWitt <dew...@chromium.org>
          Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
          Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
          Gerrit-CC: Rosie Yang <ros...@google.com>
          Gerrit-Attention: Yuheng Huang <yuh...@chromium.org>
          Gerrit-Attention: Rosie Yang <ros...@google.com>
          Gerrit-Comment-Date: Mon, 22 Jun 2026 23:46:57 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Yuheng Huang (Gerrit)

          unread,
          Jun 23, 2026, 12:42:00 PM (2 days ago) Jun 23
          to Fred Shih, Justin DeWitt, Theodore Olsauskas-Warren, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
          Attention needed from Justin DeWitt and Rosie Yang

          Yuheng Huang added 1 comment

          File chrome/browser/glic/actor/glic_actor_policy_checker.h
          Line 88, Patchset 11 (Latest): // Whether the Glic API can act on Web. This is currently different than
          // CanActOnWeb() in the following ways:
          Justin DeWitt . unresolved

          why not just replace CanActOnWeb? This is just fixing a bug in our dogfooding logic which should not have consequences elsewhere.

          Yuheng Huang

          @sau...@google.com Can you provide more context why we need a new method here?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Justin DeWitt
          • Rosie Yang
          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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
          Gerrit-Change-Number: 7922896
          Gerrit-PatchSet: 11
          Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
          Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Justin DeWitt <dew...@chromium.org>
          Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
          Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
          Gerrit-CC: Rosie Yang <ros...@google.com>
          Gerrit-Attention: Rosie Yang <ros...@google.com>
          Gerrit-Attention: Justin DeWitt <dew...@chromium.org>
          Gerrit-Comment-Date: Tue, 23 Jun 2026 16:41:39 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Justin DeWitt <dew...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Yuheng Huang (Gerrit)

          unread,
          Jun 23, 2026, 5:35:15 PM (2 days ago) Jun 23
          to Fred Shih, Justin DeWitt, Theodore Olsauskas-Warren, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
          Attention needed from Justin DeWitt and Rosie Yang

          Yuheng Huang added 1 comment

          File chrome/browser/glic/actor/glic_actor_policy_checker.h
          Line 88, Patchset 11 (Latest): // Whether the Glic API can act on Web. This is currently different than
          // CanActOnWeb() in the following ways:
          Justin DeWitt . unresolved

          why not just replace CanActOnWeb? This is just fixing a bug in our dogfooding logic which should not have consequences elsewhere.

          Yuheng Huang

          @sau...@google.com Can you provide more context why we need a new method here?

          Yuheng Huang

          The new method disables actuation on enterprise accounts (if not dogfood), so it could be too conservative. In the long term we should check enterprise accounts when tier information is available in Chrome. See previous discussion in https://chromium-review.googlesource.com/c/chromium/src/+/7922896/comment/c1391751_aeb1f91e/

          Gerrit-Comment-Date: Tue, 23 Jun 2026 21:34:54 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Yuheng Huang <yuh...@chromium.org>
          Comment-In-Reply-To: Justin DeWitt <dew...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Theodore Olsauskas-Warren (Gerrit)

          unread,
          Jun 23, 2026, 6:33:59 PM (2 days ago) Jun 23
          to Yuheng Huang, Fred Shih, Justin DeWitt, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
          Attention needed from Justin DeWitt, Rosie Yang and Yuheng Huang

          Theodore Olsauskas-Warren added 1 comment

          File chrome/browser/glic/actor/glic_actor_policy_checker.h
          Line 88, Patchset 11 (Latest): // Whether the Glic API can act on Web. This is currently different than
          // CanActOnWeb() in the following ways:
          Justin DeWitt . unresolved

          why not just replace CanActOnWeb? This is just fixing a bug in our dogfooding logic which should not have consequences elsewhere.

          Yuheng Huang

          @sau...@google.com Can you provide more context why we need a new method here?

          Yuheng Huang

          The new method disables actuation on enterprise accounts (if not dogfood), so it could be too conservative. In the long term we should check enterprise accounts when tier information is available in Chrome. See previous discussion in https://chromium-review.googlesource.com/c/chromium/src/+/7922896/comment/c1391751_aeb1f91e/

          Theodore Olsauskas-Warren

          >this is just fixing a bug in our dogfooding logic

          Not quite, this also changes the treatment of workspace accounts to always return false, when they might return true for the existing check.

          We have this awkward situation where we have G1 subscriber tier information, but _not_ workspace SKU information in the client. Thus the client cannot really know if BD is available, only that _the client is not blocking it_ (see various checks @ [1]).

          For the web exposed API, the need is to be (almost) certain the user has BD access, so this new function is explicitly more defensive, preferring to return false for users that _might_ have access, but which cannot be determined here in the client.

          [1]https://docs.google.com/document/d/1Ak65eh5a83myWo_d9mBtr-l1mbbdYdWWOTy9YvRV8jE/edit?tab=t.0#heading=h.3to6h5xis5g0

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Justin DeWitt
          • Rosie Yang
          • Yuheng Huang
          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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
          Gerrit-Change-Number: 7922896
          Gerrit-PatchSet: 11
          Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
          Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
          Gerrit-Reviewer: Justin DeWitt <dew...@chromium.org>
          Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
          Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
          Gerrit-CC: Rosie Yang <ros...@google.com>
          Gerrit-Attention: Yuheng Huang <yuh...@chromium.org>
          Gerrit-Attention: Rosie Yang <ros...@google.com>
          Gerrit-Attention: Justin DeWitt <dew...@chromium.org>
          Gerrit-Comment-Date: Tue, 23 Jun 2026 22:33:43 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Justin DeWitt (Gerrit)

          unread,
          Jun 24, 2026, 12:53:10 PM (yesterday) Jun 24
          to Yuheng Huang, Fred Shih, Theodore Olsauskas-Warren, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
          Attention needed from Rosie Yang and Yuheng Huang

          Justin DeWitt added 1 comment

          File chrome/browser/glic/actor/glic_actor_policy_checker.h
          Line 88, Patchset 11 (Latest): // Whether the Glic API can act on Web. This is currently different than
          // CanActOnWeb() in the following ways:
          Justin DeWitt . unresolved

          why not just replace CanActOnWeb? This is just fixing a bug in our dogfooding logic which should not have consequences elsewhere.

          Yuheng Huang

          @sau...@google.com Can you provide more context why we need a new method here?

          Yuheng Huang

          The new method disables actuation on enterprise accounts (if not dogfood), so it could be too conservative. In the long term we should check enterprise accounts when tier information is available in Chrome. See previous discussion in https://chromium-review.googlesource.com/c/chromium/src/+/7922896/comment/c1391751_aeb1f91e/

          Theodore Olsauskas-Warren

          >this is just fixing a bug in our dogfooding logic

          Not quite, this also changes the treatment of workspace accounts to always return false, when they might return true for the existing check.

          We have this awkward situation where we have G1 subscriber tier information, but _not_ workspace SKU information in the client. Thus the client cannot really know if BD is available, only that _the client is not blocking it_ (see various checks @ [1]).

          For the web exposed API, the need is to be (almost) certain the user has BD access, so this new function is explicitly more defensive, preferring to return false for users that _might_ have access, but which cannot be determined here in the client.

          [1]https://docs.google.com/document/d/1Ak65eh5a83myWo_d9mBtr-l1mbbdYdWWOTy9YvRV8jE/edit?tab=t.0#heading=h.3to6h5xis5g0

          Justin DeWitt

          ok. Then can we just 1) adjust dogfooding logic in CanActOnWeb and 2) wrap CanActOnWeb in an additional check to reduce code copying

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Rosie Yang
          • Yuheng Huang
          Gerrit-Comment-Date: Wed, 24 Jun 2026 16:52:18 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Yuheng Huang <yuh...@chromium.org>
          Comment-In-Reply-To: Justin DeWitt <dew...@chromium.org>
          Comment-In-Reply-To: Theodore Olsauskas-Warren <sau...@google.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Yuheng Huang (Gerrit)

          unread,
          6:29 PM (3 hours ago) 6:29 PM
          to Fred Shih, Justin DeWitt, Theodore Olsauskas-Warren, Rosie Yang, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, dewitt...@chromium.org, extension...@chromium.org, mfoltz+wa...@chromium.org
          Attention needed from Fred Shih, Justin DeWitt, Rosie Yang and Theodore Olsauskas-Warren

          Yuheng Huang added 1 comment

          File chrome/browser/glic/actor/glic_actor_policy_checker.h
          Line 88, Patchset 11: // Whether the Glic API can act on Web. This is currently different than

          // CanActOnWeb() in the following ways:
          Justin DeWitt . resolved

          why not just replace CanActOnWeb? This is just fixing a bug in our dogfooding logic which should not have consequences elsewhere.

          Yuheng Huang

          @sau...@google.com Can you provide more context why we need a new method here?

          Yuheng Huang

          The new method disables actuation on enterprise accounts (if not dogfood), so it could be too conservative. In the long term we should check enterprise accounts when tier information is available in Chrome. See previous discussion in https://chromium-review.googlesource.com/c/chromium/src/+/7922896/comment/c1391751_aeb1f91e/

          Theodore Olsauskas-Warren

          >this is just fixing a bug in our dogfooding logic

          Not quite, this also changes the treatment of workspace accounts to always return false, when they might return true for the existing check.

          We have this awkward situation where we have G1 subscriber tier information, but _not_ workspace SKU information in the client. Thus the client cannot really know if BD is available, only that _the client is not blocking it_ (see various checks @ [1]).

          For the web exposed API, the need is to be (almost) certain the user has BD access, so this new function is explicitly more defensive, preferring to return false for users that _might_ have access, but which cannot be determined here in the client.

          [1]https://docs.google.com/document/d/1Ak65eh5a83myWo_d9mBtr-l1mbbdYdWWOTy9YvRV8jE/edit?tab=t.0#heading=h.3to6h5xis5g0

          Justin DeWitt

          ok. Then can we just 1) adjust dogfooding logic in CanActOnWeb and 2) wrap CanActOnWeb in an additional check to reduce code copying

          Yuheng Huang

          I refactor ComputeActOnWebCapability() to take a boolean disable_for_enterprise, for glic api disable_for_enterprise=true, for the other use case disable_for_enterprise=false. It should fix the dogfood bug for both cases and reuse code. PTAL.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Fred Shih
          • Justin DeWitt
          • Rosie Yang
          • Theodore Olsauskas-Warren
          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: I7a769ab0f1dc5468013c1bd283513fcb570716bc
            Gerrit-Change-Number: 7922896
            Gerrit-PatchSet: 14
            Gerrit-Owner: Yuheng Huang <yuh...@chromium.org>
            Gerrit-Reviewer: Fred Shih <ff...@chromium.org>
            Gerrit-Reviewer: Justin DeWitt <dew...@chromium.org>
            Gerrit-Reviewer: Theodore Olsauskas-Warren <sau...@google.com>
            Gerrit-Reviewer: Yuheng Huang <yuh...@chromium.org>
            Gerrit-CC: Rosie Yang <ros...@google.com>
            Gerrit-Attention: Rosie Yang <ros...@google.com>
            Gerrit-Attention: Justin DeWitt <dew...@chromium.org>
            Gerrit-Attention: Theodore Olsauskas-Warren <sau...@google.com>
            Gerrit-Attention: Fred Shih <ff...@chromium.org>
            Gerrit-Comment-Date: Thu, 25 Jun 2026 22:29:21 +0000
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy
            Reply all
            Reply to author
            Forward
            0 new messages