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

Do not show graphic in Save Password dialog. #5715

Merged
merged 2 commits into from
Jun 4, 2020
Merged

Conversation

mkarolin
Copy link
Collaborator

@mkarolin mkarolin commented Jun 2, 2020

Fixes brave/brave-browser#10008

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.

@mkarolin mkarolin added this to the 1.11.x - Nightly milestone Jun 2, 2020
@mkarolin mkarolin requested a review from bridiver as a code owner June 2, 2020 15:37
@mkarolin mkarolin self-assigned this Jun 2, 2020
@mkarolin mkarolin requested a review from bsclifton June 2, 2020 15:37
@mkarolin
Copy link
Collaborator Author

mkarolin commented Jun 2, 2020

CI: the only failure was unit-tests on Android.

@mkarolin mkarolin added CI/skip-ios Do not run CI builds for iOS CI/skip-linux CI/skip-macos-x64 Do not run CI builds for macOS x64 labels Jun 2, 2020

void PasswordSaveUpdateView::OnThemeChanged() {
PasswordBubbleViewBase::OnThemeChanged();
+ BRAVE_PASSWORD_SAVE_UPDATE_VIEW_ON_THEME_CHANGED
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A patch instead of an override of PasswordSaveUpdateView::OnThemeChanged because PasswordSaveUpdateView's destructor is private.

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

++

@bsclifton
Copy link
Member

bsclifton commented Jun 3, 2020

Rebased since rewards had a DCHECK error at the time, causing me to crash locally

Ran code - it's working as expected! 😄
image

Without the patch:
image


void PasswordSaveUpdateView::OnThemeChanged() {
PasswordBubbleViewBase::OnThemeChanged();
+ BRAVE_PASSWORD_SAVE_UPDATE_VIEW_ON_THEME_CHANGED
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't we just override the two images IDR_SAVE_PASSWORD_DARK and IDR_SAVE_PASSWORD to be empty images?

Copy link
Collaborator

Choose a reason for hiding this comment

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

meaning do a chromium_src override to turn them into some brave resource that is a 1x1 image or something? Also I think it will work if the image is null so maybe try overriding to be IDR_SAVE_PASSWORD_DARK = -1 or something?

Uses 1x1 transparent png instead of Chromium's original graphics.
Removes previous patch/override that aren't needed.
@mkarolin mkarolin merged commit 7821c5f into master Jun 4, 2020
@mkarolin mkarolin deleted the maxk-issue-10008 branch June 4, 2020 00:31
mkarolin added a commit that referenced this pull request Jun 4, 2020
Do not show graphic in Save Password dialog.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-ios Do not run CI builds for iOS CI/skip-macos-x64 Do not run CI builds for macOS x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

save password prompt has graphic (C83)
3 participants