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

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

Issue 63343004: Remove DialogDelegate::UseNewStyle and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore [D]CHECKs and loop scoping. Created 7 years, 1 month 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
Index: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index 39140ed5def3f561c10d57bf56efcae47c1bdc8e..491e3a504ab6d7d57ff4b189d3dad80b1c0c8098 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -140,7 +140,7 @@ void LabelButton::SetIsDefault(bool is_default) {
void LabelButton::SetStyle(ButtonStyle style) {
// Use the new button style instead of the native button style.
// TODO(msw): Officialy deprecate and remove STYLE_NATIVE_TEXTBUTTON.
- if (DialogDelegate::UseNewStyle() && style == STYLE_NATIVE_TEXTBUTTON)
+ if (style == STYLE_NATIVE_TEXTBUTTON)
style = STYLE_BUTTON;
style_ = style;
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/error_screen_handler.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698