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() {