| Index: third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp b/third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp
|
| index 7461c29b24e89a859ec590914bccb1f2185fba41..136f2de1293bc28e40ee1f8e0ff362186b563aeb 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/BaseDateAndTimeInputType.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "core/html/forms/BaseDateAndTimeInputType.h"
|
|
|
| #include "core/html/HTMLInputElement.h"
|
| +#include "core/html/forms/BaseChooserOnlyDateAndTimeInputType.h"
|
| #include "platform/text/PlatformLocale.h"
|
| #include "wtf/CurrentTime.h"
|
| #include "wtf/DateMath.h"
|
| @@ -48,9 +49,9 @@ static const int msecPerSecond = 1000;
|
|
|
| InputTypeView* BaseDateAndTimeInputType::createView()
|
| {
|
| - // TODO(tkent): Returns ChooserOnlyDateAndTimeInputTypeView or
|
| - // MultipleFieldsDateAndTimeInputTypeView, depending on
|
| - // RuntimeEnabledFeatures::inputMultipleFieldsUIEnabled().
|
| + if (!RuntimeEnabledFeatures::inputMultipleFieldsUIEnabled())
|
| + return BaseChooserOnlyDateAndTimeInputType::create(element(), *this);
|
| + // TODO(tkent): Returns MultipleFieldsDateAndTimeInputTypeView.
|
| // crbug.com/243714
|
| return this;
|
| }
|
|
|