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

Unified Diff: ui/views/controls/button/button.cc

Issue 377423003: Lots of random cleanups, mostly for native_theme_win.cc: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix #2, for reals Created 6 years, 5 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
« ui/native_theme/native_theme_win.cc ('K') | « ui/native_theme/native_theme_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/button.cc
diff --git a/ui/views/controls/button/button.cc b/ui/views/controls/button/button.cc
index 4e7f51b545063f0193425184d0fbcdbf16e8fe22..d5f34c1c639d300efc8ca508e8fb39d8f12b6c65 100644
--- a/ui/views/controls/button/button.cc
+++ b/ui/views/controls/button/button.cc
@@ -19,9 +19,8 @@ Button::ButtonState Button::GetButtonStateFrom(ui::NativeTheme::State state) {
case ui::NativeTheme::kHovered: return Button::STATE_HOVERED;
case ui::NativeTheme::kNormal: return Button::STATE_NORMAL;
case ui::NativeTheme::kPressed: return Button::STATE_PRESSED;
- case ui::NativeTheme::kMaxState: NOTREACHED() << "Unknown state: " << state;
+ default: NOTREACHED(); return Button::STATE_NORMAL;
sky 2014/07/10 16:05:39 Same comment here about compile error.
Peter Kasting 2014/07/10 18:23:15 See reply on other comment.
Peter Kasting 2014/07/10 21:44:25 Changed this.
}
- return Button::STATE_NORMAL;
}
////////////////////////////////////////////////////////////////////////////////
« ui/native_theme/native_theme_win.cc ('K') | « ui/native_theme/native_theme_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698