Add some missing includes of //ui/views/layout/layout_provider.h [chromium/src : main]

0 views
Skip to first unread message

David Sanders (Gerrit)

unread,
Mar 11, 2026, 4:02:33 AMMar 11
to David Roger, Andrew Rayskiy, Simon Hangl, AyeAye, chrome-regionalc...@google.com, stanfie...@google.com, vasilii+watchlis...@chromium.org, dfried...@chromium.org, feature-me...@chromium.org, cbe-cep-eng...@google.com, lens-chrome...@google.com, gcasto+w...@chromium.org, mercer...@google.com, rmcelra...@chromium.org, estali...@chromium.org
Attention needed from David Roger

David Sanders added 13 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
David Sanders . unresolved

Taking a new approach to make these quicker to review - each file includes a comment on the line that has usage requiring the include (and the associated build error and link as supporting evidence). These are split off from another CL that's removing an include.

I recommend using the "Comments" tab to review as it efficiently provides all the context with these comments.

File chrome/browser/enterprise/connectors/analysis/content_analysis_dialog_delegate.cc
Line 55, Patchset 1 (Parent): set_fixed_width(views::LayoutProvider::Get()->GetDistanceMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688010142196682273

File chrome/browser/enterprise/data_controls/desktop_data_controls_dialog.cc
Line 46, Patchset 1 (Parent): set_fixed_width(views::LayoutProvider::Get()->GetDistanceMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688096600156224145

File chrome/browser/ssl/ask_before_http_dialog_controller.cc
Line 166, Patchset 1 (Parent): model_host->set_fixed_width(views::LayoutProvider::Get()->GetDistanceMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688009641099849937

File chrome/browser/ui/lens/overlay_base_controller.cc
Line 784, Patchset 1 (Parent): ? overlay_web_view_->GetLayoutProvider()->GetCornerRadiusMetric(
David Sanders . resolved

`member access into incomplete type 'const LayoutProvider'`

https://ci.chromium.org/b/8688096600156224145

File chrome/browser/ui/views/autofill/address_sign_in_promo_view.cc
Line 31, Patchset 1 (Parent): views::LayoutProvider::Get()->GetDistanceMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688095599501503905

File chrome/browser/ui/views/bookmarks/bookmark_sign_in_promo_bubble_view.cc
Line 30, Patchset 1 (Parent): views::LayoutProvider::Get()->GetDistanceMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688097137735282849

File chrome/browser/ui/views/desktop_capture/desktop_media_source_view.cc
Line 66, Patchset 1 (Parent): views::LayoutProvider::Get()->GetCornerRadiusMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688096624532577137

File chrome/browser/ui/views/passwords/shared_passwords_notification_view.cc
Line 31, Patchset 1 (Parent): set_fixed_width(views::LayoutProvider::Get()->GetDistanceMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688095599501503905

File chrome/browser/ui/views/search_engine_choice/search_engine_choice_dialog_view.cc
Line 45, Patchset 1 (Parent): return views::LayoutProvider::Get()->GetCornerRadiusMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688028021063897969

File chrome/browser/ui/views/user_education/ios_promo_bubble_view.h
Line 63, Patchset 1: void SetWidth(views::DistanceMetric metric);
David Sanders . resolved

`no type named 'DistanceMetric' in namespace 'views'`

https://ci.chromium.org/b/8688028021063897969

Note: `views::DistanceMetric` is an enum and cannot be forward declared.

File chrome/browser/ui/views/user_education/ios_promo_bubble_view.cc
Line 63, Patchset 1 (Parent): const auto* layout_provider = views::LayoutProvider::Get();
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688028021063897969

File chrome/browser/ui/views/web_apps/isolated_web_apps/isolated_web_app_installer_view_controller.cc
Line 582, Patchset 1 (Parent): delegate->set_fixed_width(views::LayoutProvider::Get()->GetDistanceMetric(
David Sanders . resolved

`incomplete type 'views::LayoutProvider' named in nested name specifier`

https://ci.chromium.org/b/8688048673689110081

Open in Gerrit

Related details

Attention is currently required from:
  • David Roger
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: Ib07e11279b390ac2deaada29483fa6c77e0c0eed
Gerrit-Change-Number: 7655879
Gerrit-PatchSet: 2
Gerrit-Owner: David Sanders <dsand...@ucsbalum.com>
Gerrit-Reviewer: David Roger <dro...@chromium.org>
Gerrit-CC: Andrew Rayskiy <green...@google.com>
Gerrit-CC: Simon Hangl <sim...@google.com>
Gerrit-Attention: David Roger <dro...@chromium.org>
Gerrit-Comment-Date: Wed, 11 Mar 2026 08:02:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

David Roger (Gerrit)

unread,
Mar 11, 2026, 5:25:07 AMMar 11
to David Sanders, Chromium LUCI CQ, Andrew Rayskiy, Simon Hangl, AyeAye, chrome-regionalc...@google.com, stanfie...@google.com, vasilii+watchlis...@chromium.org, dfried...@chromium.org, feature-me...@chromium.org, cbe-cep-eng...@google.com, lens-chrome...@google.com, gcasto+w...@chromium.org, mercer...@google.com, rmcelra...@chromium.org, estali...@chromium.org
Attention needed from David Sanders

David Roger voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • David Sanders
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ib07e11279b390ac2deaada29483fa6c77e0c0eed
Gerrit-Change-Number: 7655879
Gerrit-PatchSet: 2
Gerrit-Owner: David Sanders <dsand...@ucsbalum.com>
Gerrit-Reviewer: David Roger <dro...@chromium.org>
Gerrit-Reviewer: David Sanders <dsand...@ucsbalum.com>
Gerrit-CC: Andrew Rayskiy <green...@google.com>
Gerrit-CC: Simon Hangl <sim...@google.com>
Gerrit-Attention: David Sanders <dsand...@ucsbalum.com>
Gerrit-Comment-Date: Wed, 11 Mar 2026 09:24:46 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

David Sanders (Gerrit)

unread,
Mar 11, 2026, 3:28:20 PMMar 11
to David Roger, Chromium LUCI CQ, Andrew Rayskiy, Simon Hangl, AyeAye, chrome-regionalc...@google.com, stanfie...@google.com, vasilii+watchlis...@chromium.org, dfried...@chromium.org, feature-me...@chromium.org, cbe-cep-eng...@google.com, lens-chrome...@google.com, gcasto+w...@chromium.org, mercer...@google.com, rmcelra...@chromium.org, estali...@chromium.org

David Sanders voted and added 1 comment

Votes added by David Sanders

Commit-Queue+2

1 comment

Patchset-level comments
David Sanders . resolved

Taking a new approach to make these quicker to review - each file includes a comment on the line that has usage requiring the include (and the associated build error and link as supporting evidence). These are split off from another CL that's removing an include.

I recommend using the "Comments" tab to review as it efficiently provides all the context with these comments.

David Sanders

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: Ib07e11279b390ac2deaada29483fa6c77e0c0eed
    Gerrit-Change-Number: 7655879
    Gerrit-PatchSet: 2
    Gerrit-Owner: David Sanders <dsand...@ucsbalum.com>
    Gerrit-Reviewer: David Roger <dro...@chromium.org>
    Gerrit-Reviewer: David Sanders <dsand...@ucsbalum.com>
    Gerrit-CC: Andrew Rayskiy <green...@google.com>
    Gerrit-CC: Simon Hangl <sim...@google.com>
    Gerrit-Comment-Date: Wed, 11 Mar 2026 19:28:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: David Sanders <dsand...@ucsbalum.com>
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Mar 11, 2026, 3:41:55 PMMar 11
    to David Sanders, David Roger, Andrew Rayskiy, Simon Hangl, AyeAye, chrome-regionalc...@google.com, stanfie...@google.com, vasilii+watchlis...@chromium.org, dfried...@chromium.org, feature-me...@chromium.org, cbe-cep-eng...@google.com, lens-chrome...@google.com, gcasto+w...@chromium.org, mercer...@google.com, rmcelra...@chromium.org, estali...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Add some missing includes of //ui/views/layout/layout_provider.h
    Bug: 40216326
    Change-Id: Ib07e11279b390ac2deaada29483fa6c77e0c0eed
    Reviewed-by: David Roger <dro...@chromium.org>
    Commit-Queue: David Sanders <dsand...@ucsbalum.com>
    Cr-Commit-Position: refs/heads/main@{#1597926}
    Files:
    • M chrome/browser/enterprise/connectors/analysis/content_analysis_dialog_delegate.cc
    • M chrome/browser/enterprise/data_controls/desktop_data_controls_dialog.cc
    • M chrome/browser/ssl/ask_before_http_dialog_controller.cc
    • M chrome/browser/ui/lens/overlay_base_controller.cc
    • M chrome/browser/ui/views/autofill/address_sign_in_promo_view.cc
    • M chrome/browser/ui/views/bookmarks/bookmark_sign_in_promo_bubble_view.cc
    • M chrome/browser/ui/views/desktop_capture/desktop_media_source_view.cc
    • M chrome/browser/ui/views/passwords/shared_passwords_notification_view.cc
    • M chrome/browser/ui/views/search_engine_choice/search_engine_choice_dialog_view.cc
    • M chrome/browser/ui/views/user_education/ios_promo_bubble_view.cc
    • M chrome/browser/ui/views/user_education/ios_promo_bubble_view.h
    • M chrome/browser/ui/views/web_apps/isolated_web_apps/isolated_web_app_installer_view_controller.cc
    Change size: S
    Delta: 12 files changed, 12 insertions(+), 0 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by David Roger
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib07e11279b390ac2deaada29483fa6c77e0c0eed
    Gerrit-Change-Number: 7655879
    Gerrit-PatchSet: 3
    Gerrit-Owner: David Sanders <dsand...@ucsbalum.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: David Roger <dro...@chromium.org>
    Gerrit-Reviewer: David Sanders <dsand...@ucsbalum.com>
    Gerrit-CC: Andrew Rayskiy <green...@google.com>
    Gerrit-CC: Simon Hangl <sim...@google.com>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages