Skip to content

Commit

Permalink
Do not show graphic in Save Password dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarolin committed Jun 2, 2020
1 parent 5ba80d7 commit b8d611a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* Copyright (c) 2020 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#define BRAVE_PASSWORD_SAVE_UPDATE_VIEW_ON_THEME_CHANGED return;
#include "../../../../../../../chrome/browser/ui/views/passwords/password_save_update_view.cc"
#undef BRAVE_PASSWORD_SAVE_UPDATE_VIEW_ON_THEME_CHANGED
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/chrome/browser/ui/views/passwords/password_save_update_view.cc b/chrome/browser/ui/views/passwords/password_save_update_view.cc
index 9c02474ee0da521dcc35d36b957b6097ce6204d8..42b168292097039e08affdcf25c72588cc3ff4aa 100644
--- a/chrome/browser/ui/views/passwords/password_save_update_view.cc
+++ b/chrome/browser/ui/views/passwords/password_save_update_view.cc
@@ -416,6 +416,7 @@ void PasswordSaveUpdateView::AddedToWidget() {

void PasswordSaveUpdateView::OnThemeChanged() {
PasswordBubbleViewBase::OnThemeChanged();
+ BRAVE_PASSWORD_SAVE_UPDATE_VIEW_ON_THEME_CHANGED
int id = color_utils::IsDark(GetBubbleFrameView()->GetBackgroundColor())
? IDR_SAVE_PASSWORD_DARK
: IDR_SAVE_PASSWORD;

0 comments on commit b8d611a

Please sign in to comment.