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

Unified Diff: Source/bindings/v8/V8DOMWindowShell.cpp

Issue 13725007: Remove the ENABLE_JAVASCRIPT_I18N_API compile time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove the flags altogether. Created 7 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 | « Source/bindings/v8/RuntimeEnabledFeatures.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/bindings/v8/RuntimeEnabledFeatures.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698