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

Alternative strategy for hiding original bookmark star button in location bar #379

Merged
merged 1 commit into from
Sep 3, 2018

Conversation

petemill
Copy link
Member

@petemill petemill commented Aug 31, 2018

Fix brave/brave-browser#899

Re-definition of LocationBarView's LocationBar subclass was flakey and now that we have a BraveLocationBarView subclass, adding an override there is lower-impact.

Looks like the #define override implemented in https://github.com/brave/brave-core/pull/343/files#diff-778cfac58ee12e6eb9fa44823c5ae57aR8 isn't working correctly on Windows, nor is the previous chromium_src solution from https://github.com/brave/brave-core/pull/280/files#diff-c93544d318feb386e99e9afc28a229a7

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.
  • Request a security/privacy review as needed.
  • Add appropriate QA labels (QA/Needed or QA/No-QA-Needed) to include the closed issue in milestone

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

…tion bar

Fix brave/brave-browser#899
Re-definition of LocationBarView's LocationBar subclass was flakey
@petemill petemill self-assigned this Aug 31, 2018
@petemill petemill requested review from bbondy and simonhong August 31, 2018 09:49
@@ -36,6 +33,12 @@ void BraveLocationBarView::Update(const content::WebContents* contents) {
LocationBarView::Update(contents);
}

void BraveLocationBarView::UpdateBookmarkStarVisibility() {
if (star_view_) {
star_view_->SetVisible(false);
Copy link
Member

Choose a reason for hiding this comment

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

Much clear than before!

How about adding a browser test to check |star_view_| is always invisible?

Copy link
Member

Choose a reason for hiding this comment

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

I added an issue here for it:
brave/brave-browser#939

@bbondy bbondy merged commit 7c02774 into brave:master Sep 3, 2018
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.

LocationBar Bookmark Star is back on Windows
3 participants