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

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

Issue 23530019: Remove new dialog style command-line flags, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove strings; tweak comment. Created 7 years, 3 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 | « ui/base/ui_base_switches_util.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « ui/base/ui_base_switches_util.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698