Index: content/child/blink_platform_impl.cc |
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc |
index 25faab4b5b5a80c78133361e56a334c2725175dd..ec87cf8dd5684979d09c1f9d74896dcc0b07bc72 100644 |
--- a/content/child/blink_platform_impl.cc |
+++ b/content/child/blink_platform_impl.cc |
@@ -59,6 +59,7 @@ |
#include "third_party/WebKit/public/platform/WebURL.h" |
#include "third_party/WebKit/public/platform/WebWaitableEvent.h" |
#include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
+#include "ui/base/l10n/l10n_util.h" |
#include "ui/base/layout.h" |
#include "ui/events/gestures/blink/web_gesture_curve_impl.h" |
#include "ui/events/keycodes/dom4/keycode_converter.h" |
@@ -1093,6 +1094,10 @@ void BlinkPlatformImpl::stopSharedTimer() { |
shared_timer_.Stop(); |
} |
+bool BlinkPlatformImpl::isValidLocaleSyntax(const blink::WebString& locale) { |
+ return l10n_util::IsValidLocaleSyntax(locale.utf8().data()); |
+} |
+ |
void BlinkPlatformImpl::callOnMainThread( |
void (*func)(void*), void* context) { |
main_thread_task_runner_->PostTask(FROM_HERE, base::Bind(func, context)); |