commit | be8a9272d49fa6d059d64e8c33da05d36ea45eb5 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Thu Feb 10 22:06:07 2011 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Thu Feb 10 22:06:07 2011 |
tree | 6de774e9adcd660849256dbfde7dd31f419a9c81 | |
parent | 0ed842f7ee02ed88b323e85fc2c2facf39383b3e [diff] [blame] |
Adding support for JavaScript internationalization API as V8 extension. See proposal at http://wiki.ecmascript.org/doku.php?id=strawman:i18n_api. V8 hosts the actual extension code under src/extensions/experimental/i18n-extension.{cc,h}. This CL passes command line switches to WebKit (disabled by default) and test shell (enabled by default), using WebRuntimeFeatures. It also sets some gyp variables to point to ICU source path, and defines a guard for a new feature. It should be submitted only after corresponding WebKit CL (https://bugs.webkit.org/show_bug.cgi?id=49414) lands. BUG=28604 TEST=LayoutTests/fast/js/i18n-bindings-locale.html Review URL: http://codereview.chromium.org/6366021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74491 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index 6b01036..fc74a39a 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc
@@ -959,6 +959,9 @@ WebRuntimeFeatures::enableFileSystem( !command_line.HasSwitch(switches::kDisableFileSystem)); + + WebRuntimeFeatures::enableJavaScriptI18NAPI( + command_line.HasSwitch(switches::kEnableJavaScriptI18NAPI)); } void RenderThread::IdleHandler() {