Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1356)

Unified Diff: content/child/blink_platform_impl.cc

Issue 1110233002: Implement Blink's Platform::isValidLocaleSyntax() API in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698