Index: views/examples/examples_main.cc |
diff --git a/views/examples/examples_main.cc b/views/examples/examples_main.cc |
index 7b4b055e5770ffe62ba87adbb439b282d3465e83..e64af9721d9aaa2f5faa5900ab70142863a96ed7 100644 |
--- a/views/examples/examples_main.cc |
+++ b/views/examples/examples_main.cc |
@@ -21,6 +21,7 @@ |
#include "views/examples/single_split_view_example.h" |
// Slider is not yet ported to Windows. |
#if defined(OS_LINUX) |
+#include "views/controls/textfield/native_textfield_view.h" |
#include "views/examples/slider_example.h" |
#endif |
#include "views/examples/tabbed_pane_example.h" |
@@ -167,6 +168,12 @@ int main(int argc, char** argv) { |
#endif |
CommandLine::Init(argc, argv); |
+ |
+#if defined(OS_LINUX) |
+ if (CommandLine::ForCurrentProcess()->HasSwitch("enable-textfield-view")) |
+ views::NativeTextfieldView::SetEnableTextfieldView(true); |
+#endif |
+ |
examples::ExamplesMain main; |
main.Run(); |