Index: ui/views/window/dialog_delegate.cc |
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc |
index 84a6ee49eb10fd2e5ca7860a115214db137fbfed..04fcebbf64589fa3383be22681f4814d660702fd 100644 |
--- a/ui/views/window/dialog_delegate.cc |
+++ b/ui/views/window/dialog_delegate.cc |
@@ -7,7 +7,6 @@ |
#include "base/logging.h" |
#include "grit/ui_strings.h" |
#include "ui/base/l10n/l10n_util.h" |
-#include "ui/base/ui_base_switches_util.h" |
#include "ui/views/bubble/bubble_border.h" |
#include "ui/views/bubble/bubble_frame_view.h" |
#include "ui/views/controls/button/label_button.h" |
@@ -30,8 +29,8 @@ DialogDelegate::~DialogDelegate() { |
// static |
bool DialogDelegate::UseNewStyle() { |
- return switches::IsNewDialogStyleEnabled() && |
- Textfield::IsViewsTextfieldEnabled(); |
+ // The new dialog style cannot host native Windows textfield controls. |
+ return Textfield::IsViewsTextfieldEnabled(); |
} |
// static |