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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeContentViewClient.java

Issue 920693003: Revert "Revert of [Android] Migrate javascript settings to a content setting from a pref. (patchset… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove jni registration Created 5 years, 10 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
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeContentViewClient.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeContentViewClient.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeContentViewClient.java
new file mode 100644
index 0000000000000000000000000000000000000000..569fc7241dcc6e4a6b1d99dc426dd7d6fe5d19ec
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeContentViewClient.java
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser;
+
+import org.chromium.chrome.browser.preferences.PrefServiceBridge;
+import org.chromium.content.browser.ContentViewClient;
+
+/**
+ * The default {@link ContentViewClient} implementation for the chrome layer embedders.
+ */
+public class ChromeContentViewClient extends ContentViewClient {
+
+ @Override
+ public boolean isJavascriptEnabled() {
+ return PrefServiceBridge.getInstance().javaScriptEnabled();
+ }
+
+}

Powered by Google App Engine
This is Rietveld 408576698