Index: content/renderer/date_time_suggestion_builder.cc |
diff --git a/content/renderer/date_time_suggestion_builder.cc b/content/renderer/date_time_suggestion_builder.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4320ceae1843f2ef91a465acc3035c9658381f2d |
--- /dev/null |
+++ b/content/renderer/date_time_suggestion_builder.cc |
@@ -0,0 +1,22 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/renderer/date_time_suggestion_builder.h" |
+ |
+#include "content/common/date_time_suggestion.h" |
+#include "third_party/WebKit/public/web/WebDateTimeSuggestion.h" |
+ |
+namespace content { |
+ |
+// static |
+DateTimeSuggestion DateTimeSuggestionBuilder::Build( |
+ const blink::WebDateTimeSuggestion& suggestion) { |
+ DateTimeSuggestion result; |
+ result.value = suggestion.value; |
+ result.localized_value = suggestion.localizedValue; |
+ result.label = suggestion.label; |
+ return result; |
+} |
+ |
+} // namespace content |