Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3336)

Unified Diff: chrome/browser/ui/views/profiles/avatar_button.cc

Issue 2891573002: Use the win10 native avatar button only for AvatarButtonStyle::NATIVE (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/avatar_button.cc
diff --git a/chrome/browser/ui/views/profiles/avatar_button.cc b/chrome/browser/ui/views/profiles/avatar_button.cc
index a787cc31389ed9c42f187dffff1e5ffbb5f755fb..2d5599a6481eab804fd24f5d4246a21e8792d682 100644
--- a/chrome/browser/ui/views/profiles/avatar_button.cc
+++ b/chrome/browser/ui/views/profiles/avatar_button.cc
@@ -92,10 +92,9 @@ AvatarButton::AvatarButton(views::ButtonListener* listener,
#if defined(OS_WIN)
// TODO(estade): Use MD button in other cases, too [http://crbug.com/591586]
if ((base::win::GetVersion() >= base::win::VERSION_WIN10) &&
- ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme()) {
- DCHECK_EQ(AvatarButtonStyle::NATIVE, button_style);
+ ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme() &&
+ button_style == AvatarButtonStyle::NATIVE)
use_win10_native_button_ = true;
- }
#endif // defined(OS_WIN)
if (use_win10_native_button_) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698