Index: content/renderer/renderer_date_time_picker.cc |
diff --git a/content/renderer/renderer_date_time_picker.cc b/content/renderer/renderer_date_time_picker.cc |
index 8c3a8f2bf82b71e49254ee962dd4c91558728b5b..592e2491451e20687c44524d34d1436582540fe0 100644 |
--- a/content/renderer/renderer_date_time_picker.cc |
+++ b/content/renderer/renderer_date_time_picker.cc |
@@ -6,6 +6,7 @@ |
#include "base/strings/string_util.h" |
#include "content/common/view_messages.h" |
+#include "content/renderer/date_time_suggestion_builder.h" |
#include "content/renderer/render_view_impl.h" |
#include "third_party/WebKit/public/web/WebDateTimeChooserCompletion.h" |
#include "third_party/WebKit/public/web/WebDateTimeChooserParams.h" |
@@ -61,6 +62,10 @@ bool RendererDateTimePicker::Open() { |
message.minimum = chooser_params_.minimum; |
message.maximum = chooser_params_.maximum; |
message.step = chooser_params_.step; |
+ for (size_t i = 0; i < chooser_params_.suggestions.size(); i++) { |
+ message.suggestions.push_back( |
+ DateTimeSuggestionBuilder::Build(chooser_params_.suggestions[i])); |
+ } |
Send(new ViewHostMsg_OpenDateTimeDialog(routing_id(), message)); |
return true; |
} |