OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package org.chromium.chrome.browser; | |
6 | |
7 import org.chromium.chrome.browser.preferences.PrefServiceBridge; | |
8 import org.chromium.content.browser.ContentViewClient; | |
9 | |
10 /** | |
11 * The default {@link ContentViewClient} implementation for the chrome layer emb
edders. | |
12 */ | |
13 public class ChromeContentViewClient extends ContentViewClient { | |
14 | |
15 @Override | |
16 public boolean isJavascriptEnabled() { | |
17 return PrefServiceBridge.getInstance().javaScriptEnabled(); | |
18 } | |
19 | |
20 } | |
OLD | NEW |