Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deps in //brave/browser/themes #6887

Merged
merged 1 commit into from
Oct 21, 2020
Merged

Conversation

Gyuyoung
Copy link
Contributor

@Gyuyoung Gyuyoung commented Oct 17, 2020

Resolves brave/brave-browser#10656.

Submitter Checklist:

Test Plan:

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

]

if (!is_android) {
sources += [
"brave_dark_mode_utils.cc",
"brave_dark_mode_utils_internal.cc",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think whole sources/deps can be moved to sources.gni instead of spliting. WDYT?

Copy link
Contributor Author

@Gyuyoung Gyuyoung Oct 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I tried to do it first. But, //brave/browser has a dependency //brave/browser/themes. So, it needs to be kept.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can deprecate themes target.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we use this splitting pattern commonly? If so, I'm fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Below //brave/browser files have been including //brave/browser/themes/foo files. So, I'm not fully sure whether it's fine to remove the target.

  • //brave/browser/brave_browser_process_impl.cc,
  • //brave/browser/brave_local_state_pref.cc,
  • //brave/browser/ui/views/inforbars/brave_wayback_machine_inforbar_contents_view.cc
    ...

And also, some brave modules have been using both BUILD.gn and sources.gni and it will be used more to fix the dependency violation.

  • //brave/renderer/sources.gni, BUILD.gn
  • //brave/browser/brave_wallet/sources.gni, BUILD.gn
  • //brave/browser/sources.gni, BUILD.gn
    ...

Even, Brian also approved //brave/browser/importer - #6664

@Gyuyoung Gyuyoung merged commit fab23ce into master Oct 21, 2020
@Gyuyoung Gyuyoung deleted the gyuyoung-browser-themes-3 branch October 21, 2020 00:22
@Gyuyoung Gyuyoung added this to the 1.18.x - Nightly milestone Oct 22, 2020
mkarolin added a commit that referenced this pull request Oct 28, 2020
brave_theme_helper_win.cc/h were moved out into sources.gni by
#6887
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix deps in //brave/browser/themes/
2 participants