Index: Source/bindings/v8/V8DOMWindowShell.cpp |
diff --git a/Source/bindings/v8/V8DOMWindowShell.cpp b/Source/bindings/v8/V8DOMWindowShell.cpp |
index 3373e06b3879ca4ce31308c08b4feb53e51f80bd..a8e65306ca13d52044ec201e2c9e7b49b36c0825 100644 |
--- a/Source/bindings/v8/V8DOMWindowShell.cpp |
+++ b/Source/bindings/v8/V8DOMWindowShell.cpp |
@@ -59,15 +59,12 @@ |
#include <utility> |
#include <v8-debug.h> |
#include <v8.h> |
+#include <v8-i18n/include/extension.h> |
#include <wtf/Assertions.h> |
#include <wtf/OwnArrayPtr.h> |
#include <wtf/StringExtras.h> |
#include <wtf/text/CString.h> |
-#if ENABLE(JAVASCRIPT_I18N_API) |
-#include <v8-i18n/include/extension.h> |
-#endif |
- |
namespace WebCore { |
static void checkDocumentWrapper(v8::Handle<v8::Object> wrapper, Document* document) |
@@ -270,11 +267,8 @@ void V8DOMWindowShell::createContext() |
// Used to avoid sleep calls in unload handlers. |
ScriptController::registerExtensionIfNeeded(DateExtension::get()); |
-#if ENABLE(JAVASCRIPT_I18N_API) |
// Enables experimental i18n API in V8. |
- if (RuntimeEnabledFeatures::javaScriptI18NAPIEnabled()) |
- ScriptController::registerExtensionIfNeeded(v8_i18n::Extension::get()); |
-#endif |
+ ScriptController::registerExtensionIfNeeded(v8_i18n::Extension::get()); |
// Dynamically tell v8 about our extensions now. |
const V8Extensions& extensions = ScriptController::registeredExtensions(); |