Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index 4787e4e4af6281a38cf26fa9327643a4eb52d391..e358657cb135e902972eaf5d2f5b19cbef838c45 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -16,7 +16,6 @@ |
#include "ui/base/range/range.h" |
#include "ui/base/resource/resource_bundle.h" |
#include "ui/base/ui_base_switches.h" |
-#include "ui/base/ui_base_switches_util.h" |
#include "ui/gfx/insets.h" |
#include "ui/gfx/selection_model.h" |
#include "ui/native_theme/native_theme.h" |
@@ -62,9 +61,6 @@ bool Textfield::IsViewsTextfieldEnabled() { |
return false; |
if (command_line->HasSwitch(switches::kEnableViewsTextfield)) |
return true; |
- // The new dialog style cannot host native Windows textfield controls. |
- if (switches::IsNewDialogStyleEnabled()) |
- return true; |
// Avoid native Windows Textfields if the RichEdit library is not available. |
static const HMODULE loaded_msftedit_dll = LoadLibrary(L"msftedit.dll"); |
if (!loaded_msftedit_dll) |